json
json copied to clipboard
json does not change values
Hello,
I'm trying to update some properties in a valid JSON file.
For example:
json -f app.json -I -e 'this.version="1.0.0.1"'
It does not update the value.
If I omit the -I option, the outputed json is not updated.
json version 9.0.6, node version 6.2.0 File I am trying to change in attachment.
Having the same issue here.
Scratch that - looks like it's a quoting issue. @gabsoftware try this:
json -f app.json -I -e "this.version=\"1.0.0.1\""
Not sure why single quotes aren't working.
+1 quoting
@tsal Yep, your solution worked!