One requirement today is to format the output JSON
The first thing that comes to mind is the Jsbeautifier widget.
A search for a friend replied Json.stringify can output a formatted JSON string
Copy Code code as follows:
Json.stringify (jsobj, NULL, "T"); Indent a tab
Json.stringify (Jsobj, NULL, 4); Indent 4 Spaces
Mmm, good.
PS: About JSON operation, here we recommend a few more practical JSON online tools for your reference to use:
Online JSON code inspection, inspection, landscaping, formatting tools:
Http://tools.jb51.net/code/json
JSON Online formatting tool:
Http://tools.jb51.net/code/jsonformat
Online Xml/json Mutual Conversion tool:
Http://tools.jb51.net/code/xmljson
JSON code online Format/beautify/compress/edit/Convert tools:
Http://tools.jb51.net/code/jsoncodeformat
Online JSON compression/escape tool:
Http://tools.jb51.net/code/json_yasuo_trans
C Language Style/html/css/json code formatting landscaping Tools:
Http://tools.jb51.net/code/ccode_html_css_json