title: Android Studio - Issue loading JSON
body: <p>I'm using Android Studio and I want to make a listview, which contains values that are received by JSON.</p>
  
  <pre><code> protected Void doInBackground(Void... voids) {
      HttpHandler Handler = new HttpHandler();
      String JSONString = Handler.makeServiceCall(JSONUrl);
      Log.e(TAG, "Response:" + JSONString);
  
      if(JSONString != null){
          try {
              JSONObject CountriesJSONObject = new JSONObject(JSONString);
  
              JSONArray Countries = CountriesJSONObject.getJSONArray("countries");
  
              for (int i = 1; i &lt; Countries.length(); i++) {
                  JSONObject Country = Countries.getJSONObject(i);
  
                  //Details
                  String CountryID = Country.getString("id");
                  String CountryName = Country.getString("name");
                  String CountryImage = Country.getString("image");
  
                  //Hashmap
                  HashMap&lt;String, String&gt; TempCountry = new HashMap&lt;&gt;();
  
                  //Details to Hashmap
                  TempCountry.put("id", CountryID);
                  TempCountry.put("name", CountryName);
                  TempCountry.put("image", CountryImage);
  
                  //Hashmap to Countrylist
                  CountryList.add(TempCountry);
              }
          } catch (final JSONException e){
              Log.e(TAG,e.getMessage());
              ProgressDialog.setMessage("Error loading Data!");
  
      }
  
      }
          return null;
      }
  </code></pre>
  
  <p>This is the code for getting the JSON values, and i'm receiving an error
  "No value for id"
  What am I doing wrong?</p>