title: error in getting JSONarray from JSONObject from foursquare
body: <p>Here is my JSON response ,trying parse this data getting JSON exception,how to fix this.</p>
  
  <pre><code>`{
    "meta": {
      "code": 200
    },
    "response": {
      "venues": [
        {
          "id": "4d090451c26ba14344c11c17",
          "name": "Hotel Grand Dhillon",
          "contact": {
  
          },
          "location": {
            "lat": 21.200844504492434,
            "lng": 81.32280155700252,
            "distance": 1457,
            "country": "India",
            "cc": "IN"
          },
          "categories": [
            {
              "id": "4bf58dd8d48988d1fa931735",
              "name": "Hotel",
              "pluralName": "Hotels",
              "shortName": "Hotel",
              "icon": {
                "prefix": "https:\/\/foursquare.com\/img\/categories_v2\/travel\/hotel_",
                "suffix": ".png"
              },
              "primary": true
            }
          ],
          "verified": false,
          "restricted": true,
          "stats": {
            "checkinsCount": 97,
            "usersCount": 55,
            "tipCount": 2
          },
          "specials": {
            "count": 0,
            "items": [
  
            ]
          },
          "hereNow": {
            "count": 0,
            "groups": [
  
            ]
          },
          "referralId": "v-1381236272"
        },
        {
          "id": "4d2155cf8629224ba2941a87",
          "name": "Hotel Bhilai Niwas",
          "contact": {
  
          },
          "location": {
            "lat": 21.178341816944222,
            "lng": 81.34224848671207,
            "distance": 4447,
            "city": "Bhilai",
            "state": "Chhattisgarh",
            "country": "India",
            "cc": "IN"
          },
          "categories": [
            {
              "id": "4bf58dd8d48988d1fa931735",
              "name": "Hotel",
              "pluralName": "Hotels",
              "shortName": "Hotel",
              "icon": {
                "prefix": "https:\/\/foursquare.com\/img\/categories_v2\/travel\/hotel_",
                "suffix": ".png"
              },
              "primary": true
            }
          ],
          "verified": false,
          "restricted": true,
          "stats": {
            "checkinsCount": 6,
            "usersCount": 6,
            "tipCount": 0
          },
          "specials": {
            "count": 0,
            "items": [
  
            ]
          },
          "hereNow": {
            "count": 0,
            "groups": [
  
            ]
          },
          "referralId": "v-1381236272"
        },
  </code></pre>
  
  <p>i want to display venues on google map ,before that i am trying to parse this JSON response
  here is my code</p>
  
  <pre><code>                jsonResult = inputStreamToString(
                      response.getEntity().getContent()).toString();
  
              JSONObject object = new JSONObject(jsonResult);
              venues = object.getJSONArray(TAG_VENUES);//getting exception here,cursor moving from here to catch block 
              ArrayList&lt;HashMap&lt;String, String&gt;&gt; venuesList = new ArrayList&lt;HashMap&lt;String, String&gt;&gt;();
  
              // looping through All Contacts
              for (int i = 0; i &lt; venues.length(); i++) {
                  JSONObject c = venues.getJSONObject(i);
  
                  // Storing each json item in variable
                  String id = c.getString(TAG_ID);
                  String name = c.getString(TAG_NAME);
  
                  // Location is another JSONObject so
                  JSONObject location = venues.getJSONObject(i);
  
                  String lat = location.getString(TAG_LAT);
                  String lon = location.getString(TAG_LON);
                  String distance = location.getString(TAG_DISTANCE);
  
                  // creating new HashMap
                  HashMap&lt;String, String&gt; map = new HashMap&lt;String, String&gt;();
  
                  // adding each child node to HashMap key =&gt; value
                  map.put(TAG_ID, id);
                  map.put(TAG_NAME, name);
                  map.put(TAG_LAT, lat);
                  map.put(TAG_LON, lon);
                  map.put(TAG_DISTANCE, distance);
  
                  // adding HashList to ArrayList
                  venuesList.add(map);
  </code></pre>
  
  <p>Logs posting here</p>
  
  <pre><code>    10-08 23:21:39.310: W/System.err(21249): org.json.JSONException: No value for venue
  10-08 23:21:39.310: W/System.err(21249):    at org.json.JSONObject.get(JSONObject.java:354)
  10-08 23:21:39.310: W/System.err(21249):    at org.json.JSONObject.getJSONArray(JSONObject.java:544)
  10-08 23:21:39.310: W/System.err(21249):    at com.example.xxx.MainActivity$GetChildList.doInBackground(MainActivity.java:116)
  10-08 23:21:39.310: W/System.err(21249):    at com.example.xxx.MainActivity$GetChildList.doInBackground(MainActivity.java:1)
  10-08 23:21:39.310: W/System.err(21249):    at android.os.AsyncTask$2.call(AsyncTask.java:287)
  10-08 23:21:39.310: W/System.err(21249):    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
  10-08 23:21:39.310: W/System.err(21249):    at java.util.concurrent.FutureTask.run(FutureTask.java:137)
  10-08 23:21:39.310: W/System.err(21249):    at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230)
  10-08 23:21:39.310: W/System.err(21249):    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
  10-08 23:21:39.310: W/System.err(21249):    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
  10-08 23:21:39.320: W/System.err(21249):    at java.lang.Thread.run(Thread.java:856)
  </code></pre>