【发布时间】:2019-04-15 14:55:19
【问题描述】:
编写Android应用,需要解析嵌套的JSON数据 以下是从 http 接收到的实际数据。
目前正在使用 Volley,
JSONArray dataJSONArray = response.getJSONArray("data");
需要示例代码来解析和显示下面提到的 JSON 数据中的数据
{"data":[{"counting_area_id":3,"name":"Utilization","parking_area_id":1, "free":3,"total":200,"location_latitude":null,"location_longitude":null,"places":10,
"children":[{"counting_area_id":1,"name":"Basement 1","parking_area_id":1, "free":0,"total":116,"location_latitude":null,"location_longitude":null,"places":0,
"children":[]},{"counting_area_id":73,"name":"Basement 2","parking_area_id":1, "free":3,"total":121,"location_latitude":null,"location_longitude":null,"places":3,
"children":[]}]}]}
【问题讨论】:
-
在此处发布问题之前,请遵循“如何提问”指南:stackoverflow.com/help/how-to-ask 如果您的问题不符合“如何提问”指南,您可以尝试初学者编程论坛和小组,这将比所以。如果您的代码有精确的技术问题,请将其发布在 SO 上。如果您不遵循 SO 问题指南,您的问题可能会被否决或关闭,没有任何收获或回应。另请参阅:idownvotedbecau.se/noresearch
标签: android json android-volley