1

谁能帮我解析从 TFL london 返回的 JSON 数据。

 [4,"1.0",1349088458923]
 [1,"Woolwich Ferry","161",1349088648000]
 [1,"Woolwich Ferry","177",1349088912000]
 [1,"Woolwich Ferry","161",1349089159000]
 [1,"Woolwich Ferry","180",1349089207000]
 [1,"Woolwich Ferry","177",1349089408000]
 [1,"Woolwich Ferry","472",1349089175000]
 [1,"Woolwich Ferry","161",1349089771000]
 [1,"Woolwich Ferry","472",1349089594000]
 [1,"Woolwich Ferry","180",1349089860000]
 [1,"Woolwich Ferry","472",1349088522000]
 [1,"Woolwich Ferry","177",1349090001000]
 [1,"Woolwich Ferry","472",1349088841000]
 [1,"Woolwich Ferry","472",1349089942000]
4

3 回答 3

1

这是 JSON 数组的列表,每行一个。对于每一行,使用 JSON 解析器对其进行解析,然后根据应用程序的要求对其进行处理。

于 2014-05-21T14:38:30.200 回答
-1

I think this your showned output is in csv format so you need to convert it to json . So for that you can refer the following example

于 2012-10-01T11:29:55.880 回答
-1

它看起来不像是有效的 json 响应。它是 CSV 格式的响应。

编辑:正如 Shaun 在评论中所建议的,如果它是 JsonArray,请使用 jsonparsers。

于 2012-10-01T10:52:13.963 回答