Structure

JSONSerialization.ReadingOptions

Options used when creating Foundation objects from JSON data—see jsonObject(with:options:) and jsonObject(with:options:).

Declaration

struct ReadingOptions

Topics

Constants

static var mutableContainers: JSONSerialization.ReadingOptions

Specifies that arrays and dictionaries are created as mutable objects.

static var mutableLeaves: JSONSerialization.ReadingOptions

Specifies that leaf strings in the JSON object graph are created as instances of NSMutableString.

static var allowFragments: JSONSerialization.ReadingOptions

Specifies that the parser should allow top-level objects that are not an instance of NSArray or NSDictionary.

Relationships

Conforms To

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software