Is there any way to perform a JSON.stringify
in android?
I keep seeing JSON.stringify(JSONObject)
all around the web, but I cant find the J
Basic actions with JSON objects in JAVA can be done either with a help of org.json
package (included in Android SDK) or javax.json
(part of JAVA EE). Both of them have toString()
method for conversion of JSONObject to string:
//assuming you have object `jsonobject` of class `JSONObject`
String output = jsonobject.toString()