There is an inbuilt method to convert a JSONObject to a String. Why don't you use that: JSONObject json = new JSONObject(); json.toString();. ... <看更多>
User · int id · String name · // 省略constructor, getter, setter ; Hit · Integer id · T source · // 省略getter, setter ; Apple · String color · Integer ... ... <看更多>