Trying to get a JSONObect to tokener help please ?
<p>I need to get some information from an JSONArray and i thought tokener would do it. Heres my code</p>

<pre><code>try{
            JSONArray jArray = new JSONArray(result);
            for(int i=0;i&lt;jArray.length();i++){
                String data = jArray.getString(i);
                    JSONObject json_data = (JSONObject)new JSONTokener (data).nextValue();
                    String query = json_data.getString("name");
                    JSONArray locations = json_data.getJSONArray("locations");

                    //Get an output to the screen
                    txt.setText(query); 
                    }
</code></pre>

<p>The actual array is filling with data from my database via http post.</p>

<p>Field names are <code>id</code>, <code>name</code>, <code>servings</code>, <code>description</code>.</p>
