JSONArray cookArray = new JSONArray();//json数组 JSONObject object = new JSONObject();//json对象 cookArray.put(object);//把json对象放在json数组中 JSONObject result = new JSONObject();//json对象 result.put("cookArray",cookArray);//把json数组放在json对象中原文链接:https://www.f2er.com/json/289335.html