JSONArray jsonArray = JSONObject.parseArray(role.getProjectType());
List<Map<String, String>> maps = JSON.parseObject(jsonArray.toString(), new TypeReference<List<Map<String, String>>>() {});
JSONArray jsonArray = JSONObject.parseArray(role.getProjectType());
List<Map<String, String>> maps = JSON.parseObject(jsonArray.toString(), new TypeReference<List<Map<String, String>>>() {});
下一篇:【约定】企业项目中使用的约定
目标:arraylist 转 JSONArray访问地址:https://localhost:8443/test/ge
java中map转jsonarray java将map转换为数组
import net.sf.json.JSONArray; import net.sf.json.JSONObject; import java.util.*; public class JavaTest { public static void main(String[] args){ JSONObject obj=new JSONObject();
java中JSONArray转list
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M