title: How to Parse this JSON Response in JAVA
body: <p>I want to parse these kind of Json responses :</p>
  
  <pre><code>{
  "MyResponse": {
      "count": 3,
      "listTsm": [{
          "id": "b90c6218-73c8-30bd-b532-5ccf435da766",
          "simpleid": 1,
          "name": "vignesh1"
      },
      {
          "id": "b90c6218-73c8-30bd-b532-5ccf435da766",
          "simpleid": 2,
          "name": "vignesh2"
      },
      {
          "id": "b90c6218-73c8-30bd-b532-5ccf435da766",
          "simpleid": 3,
          "name": "vignesh3"
      }]
   }
  }
  </code></pre>
  
  <p>I tried using SIMPLE JSON parser but this is not working for me:</p>
  
  <pre><code>Object obj = parser.parse(resp);
  JSONObject jsonObject = (JSONObject) obj;
  JSONArray response = (JSONArray) jsonObject.get("MyResponse");
  
  //JSONArray arr=new JSONArray(yourJSONresponse);
  ArrayList&lt;String&gt; list = new ArrayList&lt;String&gt;();
  for(int i=0; i&lt;response.size(); i++){
      list.add(response.get(i)("name"));
  }
  </code></pre>