jq is a powerful lightweight command line for formatting, searching and modifying JSON data.

Some examples:

  • Formatting:

$ echo '{"ID": "FOO", "VERSION": "1", "APP_STORE": "APPLE"}' | jq .

 {
  "ID": "FOO",
  "VERSION": "1",
  "APP_STORE": "APPLE"
}
  • Searching (and extracting):

echo '{"ID": "FOO", "VERSION": "1", "APP_STORE": "APPLE"}' | jq .ID

"FOO"

The full documentation is here