Go Back   CodingForums.com > :: Client side development > JavaScript programming > DOM and JSON scripting

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-27-2012, 02:36 AM   PM User | #1
stefanust
New to the CF scene

 
Join Date: Dec 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
stefanust is an unknown quantity at this point
Parse JSON in Linux

I need to convert this data in linux command to human readable language.
I've tried to use underscore (based on NodeJS) to prettify the output but not work. any good suggestion?

{"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"}
stefanust is offline   Reply With Quote
Old 12-27-2012, 04:18 AM   PM User | #2
rnd me
Senior Coder

 
rnd me's Avatar
 
Join Date: Jun 2007
Location: Urbana
Posts: 3,553
Thanks: 9
Thanked 480 Times in 463 Posts
rnd me is a jewel in the roughrnd me is a jewel in the roughrnd me is a jewel in the roughrnd me is a jewel in the rough
you can use command-line php to "echo json_decode($strJSON)->body;" or something like that.
__________________
my site (updated 5/13)
STATS (2013/5) HTML5:90.2% MOB:15.2% IE7:0.5% IE8:8.4% IE9:8.5% IE10:8.5%
rnd me is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:40 PM.


Advertisement
Log in to turn off these ads.