Type Property


The writing option that uses white space and indentation to make the output more readable.


static var prettyPrinted: JSONSerialization.WritingOptions { get }


If this option is not set, the most compact possible JSON representation is generated.

See Also

Formatting JSON

static var sortedKeys: JSONSerialization.WritingOptions

The writing option that sorts keys in lexicographic order.

init(rawValue: UInt)

Creates a set of JSON formatting options from an integer that represents those options.