title: org.json.jsonexception index 3 out of range 0..3)
body: <p>I am creating one android app and I am using json parsing,I am trying to get response from server my response is below and I do not know how to access multiple values with single key can any one help me with this?</p>
  
  <pre><code>{
    "filters_id":53,"user_login_id":2650, 
    "allow":"N",
    "mothertongue":"Bhojpuri",
    "maritalstatus":
      [
        "Widow\/Widower","Divorcee","Separated"
      ],
    "min_age":19,
    "max_age":22,
    "country":"India"
  }
  
  protected ArrayList&lt;HashMap&lt;String,String&gt;&gt; doInBackground(String... args) {
          ServiceHandler sh = new ServiceHandler();
  
          // Making a request to url and getting response
          ArrayList&lt;HashMap&lt;String,String&gt;&gt; data = new ArrayList&lt;HashMap&lt;String, String&gt;&gt;();
          String jsonStr = sh.makeServiceCall(FILTER_URL, ServiceHandler.GET);
  
          Log.d("Response: ", "&gt; " + jsonStr);
  
  
              try {
                  jsonObj = new JSONObject(jsonStr);
  
  
                      // 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(FILTER_ID, jsonObj.getString(FILTER_ID));
                      map.put(FILTER_USER_LOGIN_ID,jsonObj.getString(FILTER_USER_LOGIN_ID));
                      map.put(FILTER_ALLOW, jsonObj.getString(FILTER_ALLOW));
                      map.put(FILTER_MOTHERTONGUE, jsonObj.getString(FILTER_MOTHERTONGUE));
                      map.put(FILTER_MARITAL, jsonObj.getString(FILTER_MARITAL));
                      map.put(FILTER_MINAGE, jsonObj.getString(FILTER_MINAGE));
                      map.put(FILTER_MAXAGE, jsonObj.getString(FILTER_MAXAGE));
                      map.put(FILTER_COUNTRY, jsonObj.getString(FILTER_COUNTRY));
  
                      /*JSONArray status = jsonObj.getString("maritalstatus");
                      status.getString(0);*/
                      final String radiovalue = jsonObj.getString("allow");
                      Log.d("Value: ", "&gt; " + radiovalue);
                      final String mothertong = jsonObj.getString("mothertongue");
                      Log.d("Value: ", "&gt; " + mothertong);
  
  
                     /* final String marital = jsonObj.getJSONArray("maritalstatus");
                      Log.d("Value: ", "&gt; " + marital);*/
  
  
                      /*JSONArray maritalarray = (JSONArray) jsonObj.get("maritalstatus");
                      final String marital=maritalarray.getString(0);
                      Log.d("Value: ", "&gt; " + marital);*/
  
  
                      JSONArray msg = (JSONArray) jsonObj.get(FILTER_MARITAL);
                      for(int i=0;i&lt; FILTER_MARITAL.length();i++)
                      {
                           marital= msg.getString(i);
  
                      }
                      Log.d("Value: ", "&gt; " + marital);
                      /*Iterator&lt;String&gt; iterator = msg.iterator();
                      while (iterator.hasNext()) {
                          System.out.println(iterator.next());
                      }*/
                      final String minimumage = jsonObj.getString("min_age");
                      Log.d("Value: ", "&gt; " + minimumage);
                      final String maximumage = jsonObj.getString("max_age");
                      Log.d("Value: ", "&gt; " + maximumage);
                      final String countrys = jsonObj.getString("country");
                      Log.d("Value: ", "&gt; " + countrys);
  
                      getActivity().runOnUiThread(new  Runnable() 
                   {
                      @Override
                      public void run() 
                      {
                          Intent intent=new Intent(getActivity(),Filter.class);
                          intent.putExtra("id", id);
                          intent.putExtra("radiostatus", radiovalue);
                          intent.putExtra("motherstong", mothertong);
                          intent.putExtra("marriagestatus", marital);
                          intent.putExtra("minages", minimumage);
                          intent.putExtra("maxages", maximumage);
                          intent.putExtra("countries", countrys);
                          startActivity(intent);
                      } 
                  });
  
  
  
  
  
              } catch (JSONException e) {
                  e.printStackTrace();
              }
  
  
          return data;
      }
  
  
      protected void onPostExecute(ArrayList&lt;HashMap&lt;String,String&gt;&gt; result) {
  
          super.onPostExecute(result);
  
  
          // dismiss the dialog after getting all albums
          if (pDialog.isShowing())
              pDialog.dismiss();
          // updating UI from Background Thread
          /*Intent mIntent = new Intent(getActivity(),Filter.class);
          Bundle extras = mIntent.getExtras();
          try {
              extras.putString("radiostatus", jsonObj.getString(FILTER_ALLOW));
          } catch (JSONException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          }  */
  
  
      }
  </code></pre>