How to parse JSON in Java
- by Maxood
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
}