2013-01-25 92 views
0

你好 我有一個json簡單解析器的問題。我必須解析這樣的事情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"} 

所以我有很多元素,我該怎麼做?

+2

您應該提供一些有關您試圖執行的操作以及遇到的問題的信息。 –

+0

首先,您應該嘗試*某些*,並向我們展示一些不起作用的代碼。然後有人會幫助您將其改爲可用的代碼。 – dasblinkenlight

+1

請注意,您的示例不是有效的JSON。你應該告訴更多它來自哪裏,你想要做什麼以及哪些不起作用。 – mvp

回答

0

嘗試閱讀關於如何處理需要使用的編程語言中的字符串。瞭解JSON,它是什麼以及JSON語句應該是什麼樣子。很明顯,也閱讀了解析器。嘗試對代碼進行編碼,然後向我們展示您製作的代碼。

0

無論你發佈的是不是JSON。它是JSON的列表。你的問題不是很清楚,但嘗試在循環中解析有效的json。