Why convert JSON to Swift?
Modeling API payloads with Swift structs by hand takes time. Paste a sample JSON document
above and receive Codable structs ready to drop into your iOS or macOS project, nested
objects included.
How it works
The converter parses your JSON locally and emits one struct … : Codable per object.
Integers map to Int, floats to Double, arrays to [T]. Properties are camelCased and
a CodingKeys enum restores the original keys when they differ. Toggle the var option
for mutable properties, and rename the root type with the Root name field.