LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 11-19-2012, 06:27 PM   #1
Stefanus
LQ Newbie
 
Registered: Nov 2012
Posts: 2

Rep: Reputation: Disabled
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"}
 
Old 11-19-2012, 08:10 PM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5
Posts: 16,086

Rep: Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995
Try any of the top 4 results here http://search.cpan.org/search?query=json&mode=all
 
Old 11-19-2012, 10:25 PM   #3
Stefanus
LQ Newbie
 
Registered: Nov 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thank for the reply.

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reading AJAX/JSON Responses in Linux (Bash/Perl/PHP) msf004 Programming 5 05-16-2012 03:35 AM
command line parse?? shanky Linux - Newbie 4 10-14-2011 12:45 AM
awk not parse the output of nc command! mythcat Linux - General 6 09-30-2011 03:00 AM
How to use awk command to parse fields in a line johnsanty Programming 9 05-25-2006 09:56 PM
how to pipe and parse output of a command learnfast Linux - Newbie 2 06-15-2005 04:55 AM


All times are GMT -5. The time now is 04:28 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration