使用
JSONArray#join()加入的元素。查看JSONArray文档以获取更多信息。
poi.setFormattedAddress( jsonArray.getJSonObject(i).getJSonObject("location") .getJSonArray("formattedAddress").join(", ")); // passing ", " as the separator目前尚不清楚引号是否是您输入的JSON字符串的一部分。如果它们出现在您的联接中,则可以使用该
String#replace()方法轻松删除它们。
System.out.println(jsonArray.join(", ").replace(""", ""));


