del
does not compact objects when the requested path does not exist
#1105
Labels
del
does not compact objects when the requested path does not exist
#1105
When using
del
withcompact: true
, the docs say:However, if the path that is given does not exist, no compaction of the parents is done.
For example, given the VRL program
del(.foo.bar, compact: true)
and an input object of{"foo": {"bar":true}}
, the result is an empty object. However, with an input object of{"foo": {}}
, the result is unchanged, even though the implication is that"foo"
would be compacted.The text was updated successfully, but these errors were encountered: