arpo
10/9/2017 - 11:49 AM

json beautyfy

Pretty-print JSON using JavaScript

JSON.stringify(jsObj, null, "\t"); // stringify with tabs inserted at each level
JSON.stringify(jsObj, null, 4);    // stringify with 4 spaces at each level