json中key must be strings, unquoted错误
json中key 必须是 string类型,包括JSONObject和JSONArray(即由一个string对应到array)否则会抛异常,如标题所示我之前遇到了这个问题,错在两个地方1. HashMap HashMap对象中 key 使用的是 Integer,所以 JSONObject.fromObject()抛异常,告知key must be strings,...
原创
2012-12-01 00:14:45 ·
1275 阅读 ·
0 评论