Skip to main content

Module formatter

Module formatter 

Source
Expand description

Pretty printing and minification for the JSON AST.

Functions§

format
Formats the JSON node. Uses lossless number representations to preserve precision. Retrieves configuration settings directly from the global singleton.
minify
Minifies the JSON node, stripping all whitespace and formatting.