In my Unix shell script, when I execute the curl command, the result will be displayed as below, which I redirect to the file:
{"type":"Show","id":"123","title":"name","description":"Funny","channelTitle":"ifood.tv","lastUpdateTimestamp":"2014-04-20T20:34:59","numOfVideos":"15"}
But I want this output to be placed in a readable JSON format, as shown in the file below:
{"type":"Show", "id":"123", "title":"name", "description":"Funny", "channelTitle":"ifood.tv", "lastUpdateTimestamp":"2014-04-20T20:34:59", "numOfVideos":"15"}
How do I format the output in this way?
json shell curl
Jams Dec 01 '14 at 10:18 2014-12-01 22:18
source share