There is an inbuilt method to convert a JSONObject to a String. Why don’t you use that:
JSONObject json = new JSONObject();
json.toString();
There is an inbuilt method to convert a JSONObject to a String. Why don’t you use that:
JSONObject json = new JSONObject();
json.toString();