Example of Multilevel JSON
{"id":"229","name":"","price":"0","mrp_price":"","discount":"","no_of_views":"16","brand":"Blowhot","qty":"No Limit","in_stock":1,"variation_type":"","type":"","variations":"","description":"","checkout_buttons":1,"specifications":"",
"seller_info":{"shop_id":"375","shop_name":"Sheikh Enterprises","been_here":2,"reviews":2,"products":13,"favorites":1}}
try {
JSONObject reader = new JSONObject(response);
name = reader.getString("name");
price = reader.getString("price");
discount = reader.getString("discount");
brand = reader.getString("brand");
qty = reader.getString("qty");
in_stock = reader.getString("in_stock");
variation_type = reader.getString("variation_type");
description = reader.getString("description");
checkout_buttons = reader.getString("checkout_buttons");
specifications = reader.getString("specifications");
seller_info = reader.getString("seller_info");
JSONObject second_level;
second_level = new JSONObject(seller_info);
shop_id = second_level.getString("shop_id");
shop_name = second_level.getString("shop_name");
been_here = second_level.getString("been_here");
reviews = second_level.getString("reviews");
products = second_level.getString("products");
favorites = second_level.getString("favorites");
} catch (JSONException e) {
// TODO Auto-generated catch block
e.printStackTrace();
Log.d("5jan", e.toString() + " I catched");
}