---
title: "init(rawValue:)"
framework: foundation
role: symbol
role_heading: Initializer
path: "foundation/jsonserialization/writingoptions/init(rawvalue:)"
---

# init(rawValue:)

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

## Declaration

```swift
init(rawValue: UInt)
```

## Parameters

- `rawValue`: An option set of writing options defined by this type.
