prettyPrint
TypeScriptget prettyPrint(): booleanSwift declarationvar prettyPrint: BoolA Boolean value that indicates whether to split lines and indent the generated JSON. Defaults to `false`.
struct · iOS 16.0+ · SDK 27.1
struct JSONWritingOptionsA set of JSON file-reading options.
get prettyPrint(): booleanSwift declarationvar prettyPrint: BoolA Boolean value that indicates whether to split lines and indent the generated JSON. Defaults to `false`.
set prettyPrint(value: boolean)Swift declarationvar prettyPrint: BoolA Boolean value that indicates whether to split lines and indent the generated JSON. Defaults to `false`.
get dateFormatter(): ((arg0: globalThis.Date) => Promise<string>)Swift declarationvar dateFormatter: (Date) -> StringA closure that maps dates to their string representations. Defaults to ISO 8601 encoding.
get sortKeys(): booleanSwift declarationvar sortKeys: BoolA Boolean value that indicates whether to sort the keys. Defaults to `false`.
set sortKeys(value: boolean)Swift declarationvar sortKeys: BoolA Boolean value that indicates whether to sort the keys. Defaults to `false`.
static init(): JSONWritingOptionsSwift declarationinit()Creates a set of options for writing a JSON file.
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
JSONWritingOptions.dateFormatter
closure property answers its caller