使用JsonObject来构造json
执行的结果
JSONObject jsonObject = new JSONObject();
jsonObject.put("name","java");
JSONArray jsonArray = new JSONArray();
jsonArray.put("http基础");
jsonArray.put("json数据解析");
jsonObject.put("content",jsonArray);