jsonobject to string code example
Example 1: how to convert jsonobject to string in java
JSONObject json = new JSONObject();
json.toString();
Example 2: Javascript object to JSON string
var person={"first_name":"Tony","last_name":"Hawk","age":31};
var personJSONString=JSON.stringify(person);