0

您好 ,我的 json 简单解析器有问题。我必须解析这样的东西

{"phoneNumber":"9874662222","name":"Иван","surname":"Иванов","key":"ivanov0"}{"phoneNumber":"9874662222","name":"Иван","surname":"Иванов","key":"ivanov1"}{"phoneNumber":"9874662222","name":"Иван","surname":"Иванов","key":"ivanov2"}{"phoneNumber":"9874662222","name":"Иван","surname":"Иванов","key":"ivanov3"}{"phoneNumber":"9874662222","name":"Иван","surname":"Иванов","key":"ivanov4"}{"phoneNumber":"9874662222","name":"Иван","surname":"Иванов","key":"ivanov5"}{"phoneNumber":"9874662222","name":"Иван","surname":"Иванов","key":"ivanov6"}{"phoneNumber":"9874662222","name":"Иван","surname":"Иванов","key":"ivanov7"}{"phoneNumber":"9874662222","name":"Иван","surname":"Иванов","key":"ivanov8"}{"phoneNumber":"9874662222","name":"Иван","surname":"Иванов","key":"ivanov9"}

所以我有很多元素,我该怎么办?

4

2 回答 2

0

无论您发布什么都不是 JSON。它是 JSON 列表。您的问题不太清楚,但尝试在循环中解析有效的 json。

于 2013-01-25T10:53:04.207 回答
0

尝试阅读有关如何在您需要使用的编程语言中处理字符串的信息。了解 JSON,它是什么以及 JSON 语句应该是什么样子。显然,也要阅读解析器。尝试编写一些代码,然后向我们展示您编写的代码。

于 2013-01-25T10:40:58.403 回答