JSON input
Paste JSON, optionally name the root type, then generate.
Your Objective-C model code will appear here.
Generate Objective-C model interfaces from JSON. Get @interface blocks with typed properties, NSNumber wrappers, and nested model classes.
Paste JSON, optionally name the root type, then generate.
Your Objective-C model code will appear here.
Millions of lines of Objective-C still ship in the App Store. This generator converts JSON API responses into @interface declarations with the property attributes (nonatomic, strong, copy) that codebase conventions expect.
Parse with NSJSONSerialization, then map dictionaries onto the generated models with a library like Mantle or manual init methods. The property types match what the parser produces.