dop 0.2.2

Process, transform and query JSON/YAML/TOML, from the shell.
# Remove from outside

# INPUT

{
  "foo": {
    "bar": [
      1,
      2,
      3
    ]
  }
}

# SCRIPT

if KEY == "foo.bar[1]" then
    unset("foo.bar")
end

# EXPECT

{"foo":{}}

---

# Try to remove a value that does not exist

# INPUT

{"foo":{"bar":1}}

# SCRIPT

unset("this.value.does.not.exist")

# EXPECT

{"foo":{"bar":1}}