fastjson解析JSON问题
{"errno":0,"errmsg":"","serverTime":140065538,"results":{"2014-05-21":{"schedule":[{"...
{
"errno":0,
"errmsg":"",
"serverTime":140065538,
"results":{
"2014-05-21":{
"schedule":[
{
"title":"测试标题",
"vanue":"测试测试",
"game_time":"2014-05-21 15:00:00",
"vs":"北京vs天津",
"results":"",
"remark":"",
"category_id":1,
"category_name":"足球"
}
]
}
}
}
得到的String是这样的, 然后我JSONObject obj = JSON.parseObject(msg); 就报错, syntax error pos 2是为什么。。应该怎么解析? 展开
"errno":0,
"errmsg":"",
"serverTime":140065538,
"results":{
"2014-05-21":{
"schedule":[
{
"title":"测试标题",
"vanue":"测试测试",
"game_time":"2014-05-21 15:00:00",
"vs":"北京vs天津",
"results":"",
"remark":"",
"category_id":1,
"category_name":"足球"
}
]
}
}
}
得到的String是这样的, 然后我JSONObject obj = JSON.parseObject(msg); 就报错, syntax error pos 2是为什么。。应该怎么解析? 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询