No options for Swift; the name above is the root type.
Paste a JSON sample and get Swift structs conforming to Codable: String, Int, Double, Bool, [T] arrays, nested structs, optionals for fields that are null or missing in some records, and a CodingKeys enum whenever a key isn't a camelCase Swift name.
Decode with JSONDecoder().decode(Root.self, from: data). It runs entirely in your browser.
Need a different language? See all JSON-to-code converters.
Found something broken, have an idea, or just want to say thanks about any of our tools? Every message reaches a real person.