Wednesday, January 22, 2014

About json data analysis problems


            
05-20 03:24:01.568: I / Excep (339): Unterminated object at character 61 of [{topicContent: How are you? , TopicResult: 0, topicStartTime :2013-05-17 00:00:00.0, userName: byk, userHeadImage: male, userTopicId: 1}, {topicContent: xiamiannagegenghao? , TopicResult: 0, topicStartTime :2013-05-20 00:00:00.0, userName: byk, userHeadImage: male, userTopicId: 4}, {topicContent: xiamian nage genghao? , TopicResult: 0, topicStartTime :2013-05-20 00:00:00.0, userName: byk, userHeadImage: male, userTopicId: 5}]



Some people encountered? This is what happens? json string have been passed back from the server, but how not?
[{TopicContent: How are you? , TopicResult: 0, topicStartTime :2013-05-17 00:00:00.0, userName: byk, userHeadImage: male, userTopicId: 1}, {topicContent: xiamiannagegenghao? , TopicResult: 0, topicStartTime :2013-05-20 00:00:00.0, userName: byk, userHeadImage: male, userTopicId: 4}, {topicContent: xiamian nage genghao? , TopicResult: 0, topicStartTime :2013-05-20 00:00:00.0, userName: byk, userHeadImage: male, userTopicId: 5}]


JSONArray array = new JSONArray (json); Here there is an exception that is above that!
Check the next! Not sure, some people say there is no space json literal characters such as drill!
But I tried it still wrong! :
[{TopicContent: How are you? , TopicResult: 0, topicStartTime :2013-05-17 00:00:00.0, userName: byk, userHeadImage: male, userTopicId: 1}]
The above situation is still the same error!


Some encountered similar situations it? ? ? ? Seeking answers!

Reply:
Nobody back ...... give yourself points ......
Reply:
This problem is estimated to be multi-threaded concurrency issues now request the
Reply:
I also encountered, LZ did not solve, is the server side json data format is not standardized it ....

No comments:

Post a Comment