Skip to content

Glossary: Swift Beyond the Basics

Data

Foundation's type for raw bytes, the form that files and networks use. `JSONEncoder` produces `Data`, and `String(decoding:as:)` reads it as text.

Where the book teaches it

Related terms

JSONCodableURL