dreugeworst, 10 months ago You could use jq, which will work no matter how the json is formatted. Without trying it out, something like the following might work: jq ‘.path.to.key.to.change |= 11’ file.json > file.json.tmp && mv file.json.tmp file.json
You could use jq, which will work no matter how the json is formatted.
Without trying it out, something like the following might work:
jq ‘.path.to.key.to.change |= 11’ file.json > file.json.tmp && mv file.json.tmp file.json