JSON

JSONObject.toBean(2)

字号+ 作者:H5之家 来源:H5之家 2017-04-15 09:01 我要评论( )

5)(Message)JSONObject.toBean(JSONObject.fromObject(JSONObject.fromObject(result).getString("message"),config),Message.class); 不能使用(Message)JSONObject.toBean(JSONObject.fromObject(JSONObject.from

5)(Message)JSONObject.toBean(JSONObject.fromObject(JSONObject.fromObject(result).getString("message"),config),Message.class);  不能使用(Message)JSONObject.toBean(JSONObject.fromObject(JSONObject.fromObject(result).getString("message"),config),Message.class,config);

否则又报错:

类转换异常






 

1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,请转载时务必注明文章作者和来源,不尊重原创的行为我们将追究责任;3.作者投稿可能会经我们编辑修改或补充。

相关文章
  • net.sf.json.JSONException: There is a cycle in the hierarchy

    net.sf.json.JSONException: There is a cycle in the hierarchy

    2015-11-05 17:48

  • org.json.JSONException: End of input at character 0 of

    org.json.JSONException: End of input at character 0 of

    2015-10-23 15:05

网友点评