对象、集合转换成JSON

对象、集合转换成JSON

json = JSONArray.fromObject(object);
或
json.toJson(response, "text/html; charset=UTF-8", hashMap);

 

你可能感兴趣的:(对象,集合转换成JSON)