I have a giant JSON string that I am trying to parse through the command line.
Here is an example:
"Product_ID":"productID_1","Price":"$4.99","Cover_Image":"cover.jpg"},{"issue_id":"2","total_article":"36","issue_number":"4","issue_name":"","volume":"57","editors":"","date_of_release":"2013-04-01"
There are multiple issues listed, all with the same fields. I need to pull out the product ID, price and date release from each article in the JSON and write it to a text file from the command line.
I was thinking awk was the way to go but, since it reads it in as one line, I have found it to be tricky.
Any suggestions/code examples to pull these fields out?