I am wondering how to get the Json value ?(from below JSOn I would like to get product’s”Price” so that I can add into total. thank you very much.
{ "StatusCode": 0
, "StatusInfo": "Processed and Logged OK"
, "PageNumber": 0
, "TotalPageCount": 1
, "TotalProductCount": 1
, "PageProductCount": 1
, "Products": [
{ "BaseProductId": "54158094"
, "EANBarcode": "3068320055008"
, "CheaperAlternativeProductId": ""
, "HealthierAlternativeProductId": ""
, "ImagePath": "http://img.tesco.com/Groceries/pi/008/3068320055008/IDShot_90x90.jpg"
, "MaximumPurchaseQuantity": 99
, "Name": "UNAVAILABLE: Evian Natural Mineral Water 500 Ml"
, "OfferPromotion": ""
, "OfferValidity": ""
, "OfferLabelImagePath": ""
, "Price": 0.51
, "PriceDescription": "(Unavailable)"
, "ProductId": "258247301"
, "ProductType": "QuantityOnlyProduct"
, "UnitPrice": 0.004
, "UnitType": "100ml" } ] }
Pricetag value is notintits double so usedouble,,if you wantintthen
getIntfrom jsonobject but it return0.due to0.5values…