fastJson

时间:2020-04-21 15:14:05   收藏:0   阅读:53
## fast-json


String s =JSON.toJSONString(userBean)
String s1 = JSON.toJSONString(arraylist)




JSON,parseObject(json,返回的类型)




JSONObject jsonObject = new JSONObject();
jsonobject.put("status","200")
jsonobject.put(‘data‘,userbean)


返回数据

response.setContentType("application/json")
评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!