One Logo Pool Ball
TabularData · IOS API REFERENCE

JSONWritingOptions

struct · iOS 16.0+ · SDK 27.1

struct JSONWritingOptions

A set of JSON file-reading options.

Members (6)

get · iOS 16.0+

prettyPrint

TypeScript
get prettyPrint(): boolean
Swift declaration
var prettyPrint: Bool

A Boolean value that indicates whether to split lines and indent the generated JSON. Defaults to `false`.

set · iOS 16.0+

prettyPrint

TypeScript
set prettyPrint(value: boolean)
Swift declaration
var prettyPrint: Bool

A Boolean value that indicates whether to split lines and indent the generated JSON. Defaults to `false`.

get · iOS 16.0+

dateFormatter

TypeScript
get dateFormatter(): ((arg0: globalThis.Date) => Promise<string>)
Swift declaration
var dateFormatter: (Date) -> String

A closure that maps dates to their string representations. Defaults to ISO 8601 encoding.

get · iOS 16.0+

sortKeys

TypeScript
get sortKeys(): boolean
Swift declaration
var sortKeys: Bool

A Boolean value that indicates whether to sort the keys. Defaults to `false`.

set · iOS 16.0+

sortKeys

TypeScript
set sortKeys(value: boolean)
Swift declaration
var sortKeys: Bool

A Boolean value that indicates whether to sort the keys. Defaults to `false`.

init · iOS 16.0+

init

TypeScript
static init(): JSONWritingOptions
Swift declaration
init()

Creates a set of options for writing a JSON file.

Skipped declarations

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

All TabularData types →