我有一个网页的servlet,返回存储在我的BB移动应用程序在JSON格式字符串一个JSON ....prolems从JSON格式的字符串转换成JSON对象
现在我想解析字符串使用
JSONObject jsobject = new JSONObject(jsonString);
从中提取价值... 返回一个错误:
json must start with {
我的JSON产生的格式如下
[
{"LASTNAME":"akre","FIRSTNAME":"swapnil"},
{"LASTNAME":"akre","FIRSTNAME":"swapnil"},
{"LASTNAME":"akre","FIRSTNAME":"swapnil"}
]
这是由jsonlint.com验证corect格式....
这JSON库可以为我做到这一点... –
所以这个数据也有同样的问题。 .. [链接](http://docs.blackberry.com/sampledata.json) –
非常感谢... –