Meet jq . http://stedolan.github.io/jq/ .
A simple command line tool to process JSON file.
$ echo {} > test.json $ jq ".name = "Mike"" test.json
output :
{ "name": "Mike" }