How to parse JSON in Java

Posted by Maxood on Stack Overflow See other posts from Stack Overflow or by Maxood
Published on 2010-04-07T09:00:21Z Indexed on 2010/04/07 9:03 UTC
Read the original article Hit count: 436

Filed under:

I have the following JSON text that i need to parse to get pageName, pagePic, post_id, etc. What is the required code?

{
          pageInfo: {
               pageName: abc
               pagePic: http://profile.ak.fbcdn.net/object2/367/65/q160119538822_4127.jpg
          }
          posts: [
               {
                    post_id: 160119538822_302076968822
                    actor_id: 1183856639
                    picOfPersonWhoPosted: http://profile.ak.fbcdn.net/hprofile-ak-sf2p/hs302.ash1/23104_1183856639_4894_q.jpg
                    nameOfPersonWhoPosted: Andrea Raquel
                    message: Sounds cool. Can't wait to see it!
                    likesCount: 2
                    comments: [
                    ]
                    timeOfPost: 1266036226
               }

© Stack Overflow or respective owner

Related posts about JSON