也可用于序列化任意复杂的对象。 Gson gson = new Gson(); String json = gson.toJson(myObject);. Gson 将自动将集合转换为 JSON 阵列。
確定! 回上一頁