dop 0.2.2

Process, transform and query JSON/YAML/TOML, from the shell.
# unset: trying to remove out-of-range array elements does not crash

# INPUT

[1,2,3]

# SCRIPT_ONCE

unset("[10]")
unset("[1]")

# EXPECT

[1,3]

---

# unset: trying to remove out-of-range array elements does not crash + with empty array root

# INPUT

[]

# SCRIPT_ONCE

unset("[0]")

# EXPECT

[]

---

# unset: with invalid path does not crash

# INPUT

{"foo":[]}

# SCRIPT_ONCE

unset("foo[")

# EXPECT

{"foo":[]}