码迷,mamicode.com
首页 > Web开发 > 详细

fastJson

时间:2020-04-21 15:14:05      阅读:53      评论:0      收藏:0      [点我收藏+]

标签:数据   set   ast   status   data   stat   response   etc   object   

## 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")

fastJson

标签:数据   set   ast   status   data   stat   response   etc   object   

原文地址:https://www.cnblogs.com/tangshuo/p/12744319.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!