title: Trouble parsing a json array inside a json array
body: <p>I am having trouble parsing a simple json in java. Here is the sample json.</p>
  
  <pre class="lang-html prettyprint-override"><code>[
    {
      "politics": [
        {
          "type": "admin2",
          "friendly_type": "country",
          "name": "United States",
          "code": "usa"
        },
        {
          "type": "admin6",
          "friendly_type": "county",
          "name": "Gratiot",
          "code": "26_057"
        },
        {
          "type": "constituency",
          "friendly_type": "constituency",
          "name": "Eighth district, MI",
          "code": "26_08"
        },
        {
          "type": "admin6",
          "friendly_type": "county",
          "name": "Clinton",
          "code": "26_037"
        },
        {
          "type": "admin4",
          "friendly_type": "state",
          "name": "Michigan",
          "code": "us26"
        },
        {
          "type": "constituency",
          "friendly_type": "constituency",
          "name": "Fourth district, MI",
          "code": "26_04"
        }
      ],
      "location": {
        "latitude": 43.111976,
        "longitude": -84.71275
      }
    }
  ]
  </code></pre>
  
  <p>Now this gives me the correct json index.</p>
  
  <pre><code>JSONParser parser = new JSONParser();
  Object obj = parser.parse(output);
  JSONArray array = (JSONArray)obj;
  String jsonobj = array.get(0).toString();
  </code></pre>
  
  <pre class="lang-js prettyprint-override"><code>{"politics":[{"code":"usa","name":"United States","type":"admin2","friendly_type":"country"},{"code":"26_057","name":"Gratiot","type":"admin6","friendly_type":"county"},{"code":"26_08","name":"Eighth district, MI","type":"constituency","friendly_type":"constituency"},{"code":"26_037","name":"Clinton","type":"admin6","friendly_type":"county"},{"code":"us26","name":"Michigan","type":"admin4","friendly_type":"state"},{"code":"26_04","name":"Fourth district, MI","type":"constituency","friendly_type":"constituency"}],"location":{"latitude":43.111976,"longitude":-84.71275}}
  </code></pre>
  
  <p>But I cant seem to get the attribute that I want from it. </p>
  
  <pre><code>JSONObject obj1 = new JSONObject(jsonobj);
  String n = obj1.getString("admin4");
  System.out.println(n);
  </code></pre>
  
  <p>All that I need from this json is the state which is Michigan. Where am I wrong?
  Help would be really appreciated.</p>