title: Parsing Facebook api response (JSON) and retrieving the data
body: <p><br/>
  I'm a Java Developer and couldn't find many resources to develop facebook apps on Java. <br/>Well I'm developing a Facebook app on Java which at some point, reads the inbox of a user. I was able to create a Login flow and get a long term access token. <br/>But as I'm very new to the JSON concepts, I could not able to parse the facebook response to get the required data.<br/>
  I've read some tutorials and got to know basics of JSON and could able to write the code for parsing Simple JSON structures like:
  <br/></p>
  
  <pre><code>{
  "id": 1,
      "firstname": "Brad",
  "languages": [
      { "lang":"en" , "knowledge":"proficient" }, 
      { "lang":"fr" , "knowledge":"advanced" }, 
  ]
  "job":{
              "place":"Silicon Valley",
              "name":"Microsoft",
     }  }
  </code></pre>
  
  <p><br/>
  But, I was unable to parse the Facebook response as it looks so complex, and I have referred various places for any example or sample code to Parse the Facebook's response for <code>/me/inbox</code> request and couldn't find any.<br/>Here I'm looking for any sample code to parse the inbox JSON Object to get the required information for my App. <br/>Any effort is highly appreciated. <br/>Thank You.</p>
  
  <p><strong>Edit:</strong> I'm looking for a sample code in plain JSPs or Servelts.</p>