json
json copied to clipboard
Can I remove properties in a json file?
% echo '{"one":1, "two":2}' | json -e 'delete this.one'
{
"two": 2
}
Is this what you mean? Cheers.
json -I -f foo.json -e 'delete this.bar'
works well for me!