Let's say we have the file data.json
with a json compacted in one line:
$ cat data.json
{"employees":[{"name":"Shyam","email":"[email protected]"},{"name":"Bob","email":"[email protected]"},{"name":"Jai","email":"[email protected]"}]}
We can use the command jq to see it in with nicer format: