How to display the parsed JSON data in android
<p>I have parsed the JSON data and storing the parsed JSON data into ArrayList HashMap with the key value ,when I want to display the parsed data I am getting only the last value of the parsed Data rest all data are not displayed for reference </p>

<pre><code>public HashMap&lt;String,String&gt; map = new HashMap&lt;String, String&gt;();
create HASHmap then arraylist
public static ArrayList&lt;HashMap&lt;String, String&gt;&gt; contactList = new ArrayList&lt;HashMap&lt;String, String&gt;&gt;();
void parsing(JSONObject json)
    {
        String id="";
        String countryn="";
        try
        {
            countryobj = json.getJSONArray("country_details");

     for(int i = 0;i&lt;countryobj.length(); i++)
     {
         JSONObject items = countryobj.getJSONObject(i);

         Log.e("i","value==="+i);

         if(items.has("countryid"))
         {
             id = items.getString("countryid");
             map.put("countryid",id);
             Log.e("id","valueID==="+id);
         }
         if(items.has("country"))
         {
             countryn= items.getString("country");
             map.put("country",countryn);
             Log.e("counyrt","valueName==="+countryn);

         }
         contactList.add(i,map);
         Log.e("lisvaluet","val--"+i +contactList.get(i));


     }



    }
    catch (Exception e) {
        // TODO: handle exception

            e.printStackTrace();
    }
</code></pre>

<p>in Log I am getting <code>only 08-20 12:13:45.830: E/--ID---(654): value--{countryid=275, country=Palestinian Territory} with 269 times</code> can any help me out where I am doing wrong in storing the parsed data , I am stuck here.</p>
