Paste JSON to generate Swift 5.5+ Codable structs, or paste a Swift struct to generate sample JSON test data. Everything runs locally in your browser — nothing is uploaded:
- JSON → Swift (Codable): infers types automatically (String / Int / Double / Bool / arrays / nested objects), generates
CodingKeysfor snake_case conversion and supports nested structs and arrays. - Swift → Sample JSON: parses
structproperty names and types to produce sensible sample values (including nested structs), handy for building Codable test fixtures. - Dual language output: switch between Swift structs and Objective-C
@propertydeclarations. - Snake-case toggle:
snake_case⇄camelCase, automatically deciding whetherCodingKeysare needed. - One-click copy / clear / load sample.
Code style
Tip: click "JSON → Swift" to convert the JSON on the left; click "Swift → Sample JSON" to turn the Swift struct on the left into sample JSON. The Objective-C tab only applies to JSON → Swift.