Simply use the java Gson API: Gson gson = new GsonBuilder().create(); String json = gson.toJson(obj);// obj is your object And then you can create a ...
確定! 回上一頁