UIZE JavaScript Framework

JAVASCRIPT EXAMPLES JSON Prettifier

The JSON Prettifier tool (which makes use of the Uize.Widgets.Tools.JsonSerializer.Widget and Uize.Json modules) lets you enter untidy JSON data and then serialize it to your individual taste. The end result is neat, elegant, readable, well indented JSON formatted data. You can also take expanded JSON data and crunch it down to a one line string. A host of configuration options lets you tweak indentation, linebreaks, quote characters, key quoting, key padding and alignment, and key sorting. Or choose from one of the convenient preset configurations. Enter JSON text in the "Source JSON" pane, and then get the serialized result in the "Serialized JSON" pane. Play around with the test JSON data to begin with.