dop 0.2.2

Process, transform and query JSON/YAML/TOML, from the shell.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Change one value

# INPUT

{"foo":{"bar":10,"some_key":"this will be intact"}}

# SCRIPT

if KEY == "foo.bar" then
  set(VALUE * 2)
end

# EXPECT

{"foo":{"bar":20,"some_key":"this will be intact"}}