We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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"'
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.
app.json.txt
The text was updated successfully, but these errors were encountered:
Having the same issue here.
Sorry, something went wrong.
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!
No branches or pull requests
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.
app.json.txt
The text was updated successfully, but these errors were encountered: