Convert JSON object to a string which has no formatting and indentation in javascript code example
Example 1: js json_encode pretty
var str = JSON.stringify(obj, null, 2); // spacing level = 2
Example 2: js json stringfy beutify
JSON.stringify(obj, undefined, 2);
Example 3: pretty print json in console
new JSONObject(json).toString(2)