LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Parse JSON using Linux command (https://www.linuxquestions.org/questions/linux-newbie-8/parse-json-using-linux-command-4175437872/)

Stefanus 11-19-2012 06:27 PM

Parse JSON using Linux command
 
I need to convert this data to a readable string using linux command. Any one can help?

this data is in txt file (test.txt)

{"date":"2005\u5e7405\u670812\u65e5(\u6728) 02\u664216\u5206","quiz_no":"1469","body":"\u4e09\u56fd\u5fd7\u3092\u30e2\u30c1\u30fc\u30d5\u306b\u3 057\u305f\u6a5f\u7a2e\u3002\u6b63\u3057\u3044\u6a5f\u7a2e\u540d\u306f\u3069\u308c\u304b\uff1f","choi ce":[{"c1":"CR\u4e09\u56fd\u904a\u622f","c2":"CR\u4e09\u56fd\u904a\u7fa9","c3":"CR\u4e09\u56fd\u6f14\u7fa 9"}],"answer":"c2"}

chrism01 11-19-2012 08:10 PM

Try any of the top 4 results here http://search.cpan.org/search?query=json&mode=all

Stefanus 11-19-2012 10:25 PM

Thank for the reply.

But none is working. My server is AWS linux ami 64 bit.


All times are GMT -5. The time now is 10:53 PM.