Skip to main content

Arguments

string
required
JSON string to parse before minifying. The function reads this argument with string type checking.
DecodeOptions
Optional decode options used while parsing the input JSON. A boolean sets useNull. A table can set useNull and maxDepth.

Returns

string
JSON string produced after parsing and re-encoding the input with default encode options.

Types

DecodeOptions

Controls JSON parsing behavior.

Example

Parse valid JSON and re-encode it with default compact JSON output.