Quick answer
JSON Formatter / Validator: what it generates
JSON Formatter / Validator generates formatted JSON from JSON input, format mode, indentation, and sort object keys. The visible generation method is Output = JSON.parse(input), then JSON.stringify(parsed value, optional sorted keys, selected indentation).