I\'m trying to add or edit a variable in my package.json from a shell script. So if i have a package.json like this:
{ \"name\": \"my-project\", \"descripti
If you don't want to install sponge or json, you can also do
echo "`jq '.foo="bar"' package.json`" > package.json