当前位置: 代码迷 >> 综合 >> java中 将多个jsonObject合成一个jsonObject
  详细解决方案

java中 将多个jsonObject合成一个jsonObject

热度:2   发布时间:2024-02-04 11:04:31.0

JSONObject jsonThree = new JSONObject();
jsonThree.putAll(jsonOne);

jsonThree.putAll(jsonTwo);

System.out.println(jsonThree.toString());