how to pretty json api in console.log in console code example
Example 1: js json stringfy beutify
JSON.stringify(obj, undefined, 2);
Example 2: pretty print json in console
new JSONObject(json).toString(2)
JSON.stringify(obj, undefined, 2);
new JSONObject(json).toString(2)