JSONObject json对象-JSONArray json数组

JSONObject Json = new JSONObject();
JSONArray JsonArray = new JSONArray();

Json.put("key", "value");//JSONObject对象中添加键值对
JsonArray.add(Json);//将JSONObject对象添加到Json数组中
posted @ 2021-02-02 09:52  舞步林云  阅读(142)  评论(0编辑  收藏  举报