---
title: JSONSerialization.ReadingOptions
framework: foundation
role: symbol
role_heading: Structure
path: foundation/jsonserialization/readingoptions
---

# JSONSerialization.ReadingOptions

Options used when creating Foundation objects from JSON data.

## Declaration

```swift
struct ReadingOptions
```

## Overview

Overview Use these options when parsing JSON with jsonObject(with:options:) and jsonObject(with:options:).

## Topics

### Creating a Reading Options Instance

- [init(rawValue:)](foundation/jsonserialization/readingoptions/init(rawvalue:).md)

### Reading Options

- [mutableContainers](foundation/jsonserialization/readingoptions/mutablecontainers.md)
- [mutableLeaves](foundation/jsonserialization/readingoptions/mutableleaves.md)
- [fragmentsAllowed](foundation/jsonserialization/readingoptions/fragmentsallowed.md)
- [json5Allowed](foundation/jsonserialization/readingoptions/json5allowed.md)
- [topLevelDictionaryAssumed](foundation/jsonserialization/readingoptions/topleveldictionaryassumed.md)
- [allowFragments](foundation/jsonserialization/readingoptions/allowfragments.md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [OptionSet](swift/optionset.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SetAlgebra](swift/setalgebra.md)

## See Also

### Creating a JSON Object

- [jsonObject(with:options:)](foundation/jsonserialization/jsonobject(with:options:)-8demi.md)
- [jsonObject(with:options:)](foundation/jsonserialization/jsonobject(with:options:)-3afap.md)
