Skip to content

Glossary: SwiftUI

JSONDecoder

Also written: JSONEncoder

The Foundation type that turns JSON bytes (Data) into Swift values, such as `decode([MenuItem].self, from: data)`. It throws if the data isn't a valid menu.

Where the book teaches it

Related terms

CodableDataJSON