Convert JsonObject to String

There is an inbuilt method to convert a JSONObject to a String. Why don’t you use that:

JSONObject json = new JSONObject();

json.toString();

Leave a Comment