Parse JSON in Linux

10 pts.
Tags:
Linux
Linux Commands
I need to parse this JSON data to readable string. before parse "2005u5e7405u670812u65e5(u6728) 02u664216u5206" after parse "2005年05月12日(木) 02時16分" Anybody know the Linux command for this ?

Answer Wiki

Thanks. We'll let you know when a new response is added.

As far as I know Linux doesn’t have native JSON parsing.  You will need to feed the JSON through a language that supports it (Python and Perl I believe support it natively and are found on many systems by default).

Here’s how to do it in Python (supports 2.6+)
try:
    import json
except ImportError:
    import simplejson as json

feed = json.loads("json_string_here")
print feed

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following