How to format json string

i hava a json string in one line
i mean no \r \n
now
i want to format it quickly and beautiful
who know how to do it?

···

--
J2EE and JS Developer
Blog: http://www.smellcode.cn
仁者不忧,知者不惑,勇者不惧

i just use JSON.pretty_generate to resolve it.:slight_smile:
J2EE and JS Developer
Blog: http://www.smellcode.cn
仁者不忧,知者不惑,勇者不惧

···

--
J2EE and JS Developer
Blog: http://www.smellcode.cn
仁者不忧,知者不惑,勇者不惧