How do I update a single value in a json document using jq? Doesn't have the answer for this question.
- Read json file.
- Update the value.
- Replace the file.
Expecting one inline command using jq
Assume I have following json file.
{
  "name": "app",
  "value": "one",
  ... 
}
I want to update the value field to "two". So resulting json file should look like
{
  "name": "app",
  "value": "two",
  ... 
}
What is the simplest bash command and windows bat command for this.
 
    