Contents

prettyPrinted

Specifies that the output uses white space and indentation to make the resulting data more readable.

Declaration

static var prettyPrinted: JSONSerialization.WritingOptions { get }

Discussion

If this option isn’t set, the serialization generates the most compact possible JSON representation.

See Also

Formatting JSON