Thanks for jaq. Great project!
I have noticed that del(f) changes the order of keys. That does not happen with jq:
echo '{"a": 1, "b": 2, "c": 3, "d": 4}' | jaq 'del(.b)' -> {"a": 1, "d": 4, "c": 3}
echo '{"a": 1, "b": 2, "c": 3, "d": 4}' | jq 'del(.b)' -> {"a": 1, "c": 3, "d": 4}
The output data is correct. Unnecessary diff in a large JSON file is the only issue.
Thanks for
jaq. Great project!I have noticed that
del(f)changes the order of keys. That does not happen withjq:echo '{"a": 1, "b": 2, "c": 3, "d": 4}' | jaq 'del(.b)'->{"a": 1, "d": 4, "c": 3}echo '{"a": 1, "b": 2, "c": 3, "d": 4}' | jq 'del(.b)'->{"a": 1, "c": 3, "d": 4}The output data is correct. Unnecessary diff in a large JSON file is the only issue.