parse json news feed array android
<p>I have an json feed from bbc in this format</p>

<pre><code>{
  "name": "ticker",
  "entries": [
    {
      "headline": "text",
      "prompt": "LATEST",
      "isBreaking": "false",
      "mediaType": "Standard",
      "url": ""
    },
    {
      "headline": "text",
      "prompt": "LATEST",
      "isBreaking": "false",
      "mediaType": "Standard",
      "url": ""
    }, 
   etc...........
</code></pre>

<p>My code is as follows:</p>

<pre><code>ArrayList&lt;HashMap&lt;String, String&gt;&gt; mylist = new ArrayList&lt;HashMap&lt;String, String&gt;&gt;();
JSONObject json = JSONfunctions.getJSONfromURL("http:/......");
try{
    JSONArray  item = json.getJSONArray("entries");
    for (int i = 0; i&lt;item.length(); i++) {
        HashMap&lt;String, String&gt; map = new HashMap&lt;String, String&gt;();
        JSONObject e = item.getJSONObject(i);
        JSONObject title = e.JSONObject("headline");
        map.put("title", "Title:" + e.getString("headline");
    }
}
</code></pre>

<p>It gives me the error <code>"java.lang.String cannot be converted to JSONObject"</code> </p>

<p>I also tried leaving out <code>JSONObject title = e.JSONObject("headline");</code> and it gives me a path error (note</p>
