Is there a simple method to convert any object to JSON in Android?
Advertisement
Answer
Most people are using gson : check this
Gson gson = new Gson(); String json = gson.toJson(myObj);
Is there a simple method to convert any object to JSON in Android?
Most people are using gson : check this
Gson gson = new Gson(); String json = gson.toJson(myObj);