JSON转String
- String s = JSONObject.toJSONString(object);
- String s1 = new ObjectMapper().writeValueAsString(object);
- net.sf.json.JSONObject jsonObject = net.sf.json.JSONObject.fromObject(object);
来源:CSDN
作者:weixin_ab
链接:https://blog.csdn.net/weixin_43114485/article/details/104108806