org.json.JSONException: No value for price
<p>I get result json and parse in android. Exception has happened with a message: org.json.JSONException: No value for price</p>

<pre><code>W/System.err: org.json.JSONException: No value for price
W/System.err:     at org.json.JSONObject.get(JSONObject.java:389)
W/System.err:     at org.json.JSONObject.getString(JSONObject.java:550)
</code></pre>

<p>My java class</p>

<pre><code>JSONParser jsonParser = new JSONParser();

// tracks JSONArray
JSONArray albums = null;

// Album id
String album_id = null;
String song_id = null;

String album_name, song_name, price;

// single song JSON url
// GET parameters album, song
private static final String URL_SONG = "my url";


// ALL JSON node names
private static final String TAG_NAME = "name";
private static final String TAG_PRICE = "price";
private static final String TAG_ALBUM = "name";     // album
...
try {
       JSONObject jObj = new JSONObject(json);
       if(jObj != null){
            song_name = jObj.getString(TAG_NAME);
            album_name = jObj.getString(TAG_ALBUM);
            price = jObj.getString(TAG_PRICE);
       }
 } 
 catch (JSONException e) {
        e.printStackTrace();
 }
</code></pre>

<p>My json URL:</p>

<pre><code>{
  "id": "551"
  "name": "Rent Disk"
  "price": "3233333"
  "album_id": "3"
  "album": "Michael"
}
</code></pre>

<p>How to fix this exception? thank so much !!</p>