vijay
3/13/2015 - 6:23 AM

JSONFetchingExample_2

JSONFetchingExample_2

	JSONObject jsonObject = new JSONObject(
						responseFromEditProductService);

				JSONObject jsonObject_msg = jsonObject.getJSONObject("msg");

				product_name_from_edit_product_service = jsonObject_msg
						.getString("product_name");
				belongID_from_edit_product_service = jsonObject_msg
						.getString("belongID");
				type_from_edit_product_service = jsonObject_msg
						.getString("type");
				qty_from_edit_product_service = jsonObject_msg.getString("qty");
				qty_cat_from_edit_product_service = jsonObject_msg
						.getString("qty_cat");
				qty_cat_type_from_edit_product_service = jsonObject_msg
						.getString("qty_cat_type");

{
    "success": true,
    "msg": {
        "product_name": "Extended Warranty Service ( Product type ) ",
        "belongID": "133",
        "type": "product_type",
        "qty": "5",
        "qty_cat": "0",
        "qty_cat_type": ""
    }
}