标签:数据 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")
标签:数据 set ast status data stat response etc object
原文地址:https://www.cnblogs.com/tangshuo/p/12744319.html