>
> I am not able to parse following data.
>
Why not?
> "
>
> *{"id":315,"name":"Sagar
> Ratna","url":"http:\/\/www.zomato.com\/ncr\/restaurants\/south-delhi\/mathura-road\/sagar-ratna-315","location":{"address":"B-1,
> A-11 Mohan Co-operative Ind Area, Mathura Road, New
> Delhi","locality":"Mathura
> Road","city":"Delhi","latitude":"28.5207270000","longitude":"77.2942530000"},"phone":"011
> 26955802, 011 26955803, 011 26955804","cuisines":"South
> Indian","timings":"11 AM to 11
> PM","avgCostForTwo":450,"isPureVeg":1,"hasBar":0,"hasDineIn":1,"hasDelivery":1,"acceptsCreditCards":1,"serviceCharge":0,"vat":1,"editorRating":{"food":2.5,"service":3.5,"ambience":2,"overall":3},"editorReview":"","userReviews":{"count":2,"0":{"review":{"id":"24728","rating":0,"reviewText":"yyejbbxzszbxzbomato.comForDevelopmentPurposes","author":"Arup
> Saha","reviewTime":"2012-01-25 16:23:10","reviewTimeFriendly":"2 months
> ago"}},"1":{"review":{"id":"24727","rating":5,"reviewText":"testReviewOnZomato.comForDevelopmentPurposes","author":"Arup
> Saha","reviewTime":"2012-01-25 16:14:16","reviewTimeFriendly":"2 months
> ago"}}},"discounts":[],"photos":{"photos_url":"http:\/\/www.zomato.com\/ncr\/restaurants\/south-delhi\/mathura-road\/sagar-ratna-315\/photos#tabtop","0":{"photo":{"thumbUrl":"http:\/\/www.zomato.com\/data\/pictures\/chains\/305\/1_thumb.jpg","url":"http:\/\/www.zomato.com\/data\/pictures\/chains\/305\/1.jpg"}}},"image_470_310":"","image_310_310":"","image_310_150":"","image_150_150":"","menu":{"menu_url":"http:\/\/www.zomato.com\/ncr\/restaurants\/south-delhi\/mathura-road\/sagar-ratna-315\/menu#tabtop"}}*
>
> "
>
Are you expecting us to go through and validate the json data?
Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware
On Thu, Mar 29, 2012 at 3:36 AM, Mini agrawal <[email protected]> wrote:
> I am not able to parse following data. I am receiving this data from some
> URl in object of JSONObject.
>
> "
>
> *{"id":315,"name":"Sagar
> Ratna","url":"http:\/\/www.zomato.com\/ncr\/restaurants\/south-delhi\/mathura-road\/sagar-ratna-315","location":{"address":"B-1,
> A-11 Mohan Co-operative Ind Area, Mathura Road, New
> Delhi","locality":"Mathura
> Road","city":"Delhi","latitude":"28.5207270000","longitude":"77.2942530000"},"phone":"011
> 26955802, 011 26955803, 011 26955804","cuisines":"South
> Indian","timings":"11 AM to 11
> PM","avgCostForTwo":450,"isPureVeg":1,"hasBar":0,"hasDineIn":1,"hasDelivery":1,"acceptsCreditCards":1,"serviceCharge":0,"vat":1,"editorRating":{"food":2.5,"service":3.5,"ambience":2,"overall":3},"editorReview":"","userReviews":{"count":2,"0":{"review":{"id":"24728","rating":0,"reviewText":"yyejbbxzszbxzbomato.comForDevelopmentPurposes","author":"Arup
> Saha","reviewTime":"2012-01-25 16:23:10","reviewTimeFriendly":"2 months
> ago"}},"1":{"review":{"id":"24727","rating":5,"reviewText":"testReviewOnZomato.comForDevelopmentPurposes","author":"Arup
> Saha","reviewTime":"2012-01-25 16:14:16","reviewTimeFriendly":"2 months
> ago"}}},"discounts":[],"photos":{"photos_url":"http:\/\/www.zomato.com\/ncr\/restaurants\/south-delhi\/mathura-road\/sagar-ratna-315\/photos#tabtop","0":{"photo":{"thumbUrl":"http:\/\/www.zomato.com\/data\/pictures\/chains\/305\/1_thumb.jpg","url":"http:\/\/www.zomato.com\/data\/pictures\/chains\/305\/1.jpg"}}},"image_470_310":"","image_310_310":"","image_310_150":"","image_150_150":"","menu":{"menu_url":"http:\/\/www.zomato.com\/ncr\/restaurants\/south-delhi\/mathura-road\/sagar-ratna-315\/menu#tabtop"}}*
>
> "
>
>
> Please reply asap.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en