how to beautify json be default in jaascript code example Example: js json stringfy beutify JSON.stringify(obj, undefined, 2);