【发布时间】:2015-05-22 10:31:15
【问题描述】:
[
{
"vendor_name": "Chef Neha Jain",
"vendor_avatar": "http://www.avatarsdb.com/avatars/dear_god.jpg",
"vendor_type": "indivisual",
"vendor_rating": "0",
"vendor_phone": "9875463210",
"vendor_address": "Golf Course Road Sector 54 New Vatika Towers Gurgaon",
"vendor_neighbourhood": "Sector 54",
"vendor_city": "gurgaon",
"dish_id": "2",
"dish_name": "Dal Baati Churma Thali",
"dish_image": "http://s3-ap-southeast-1.amazonaws.com/elasticbeanstalk-ap-southeast-1-779583297639/Dish%2FImages%2FDal+Baati+Churma+Thali%2FNormal%2Fdal_baati_churma_thali-hdpi.jpg",
"dish_description": "{\"main\":\"Dine in on a grand feast of authentic cuisine from Rajasthan. Panchmel Dal, Baati, Churma, Tadka Kadhi, Lehsun Chutney, Jeera Rice all come together to create a culinary memory that you would have seldom experience before.\",\"other\":\"Served as Panchmel Dal, 2 Baatis, Churma, Tadka Kadhi, Lehsun Chutney and Jeera Rice\"}",
"dish_palate": "[\"2\",\"4\"]",
"dish_tags": "Baati,Daal",
"dish_cost": "200",
"dish_price": "250",
"dish_rating": "4.5",
"$$hashKey": "object:7"
}
]
【问题讨论】:
-
你至少应该搜索一下吗?如果您是 android 开发新手,请学习 JSON Parsing
-
Stackoverflow 上已经存在很多问题/答案!
-
是的,我进行了搜索,但我对访问菜肴描述中的主要标签感到困惑,因为括号在引号内。有人可以帮我吗?
-
如果您不想手动解析并且您的 JSON 已修复,请使用
GSON库!这样你只需要定义 POJO 类!
标签: android json multi-level