title: Parsing json object in java code
body: <p>I am stuck with code actually i am using spring MVC 4. I have one condition where i need to pass the json object at controller side an iterate it. My Json object look like below</p>
  
  <pre><code>{"comptocome":[
      {"1":"Key Parameters","2":"Cellular Limited","3":"limited","4":"Cellular Limited"},
      {"1":"- Long term","2":"Reaffirmed","3":"football","4":"golf"}
      ]
  }
  </code></pre>
  
  <p>with respect to above i have pass this to controller and iterate according to the number of row for example from above two times loop and also to fetch data as per key can any one help me out sort this problem with help of import org.json.simple.JSONObject package.</p>
  
  <p>Thanks in advance.</p>