JSON to Objective-C

About this tool

Paste any JSON and get ready-to-use Objective-C @interface declarations. Types are inferred recursively: nested objects become their own named classes (from the field name) referenced by pointer, arrays become NSArray with a comment hinting the element type inferred from their first non-null item, and scalar values map to NSInteger, CGFloat, BOOL or NSString pointer. Each property is declared with the nonatomic attribute. The root class name is prefixed and defaults to Root.

This is handy for turning an API response into typed model interfaces for a legacy Objective-C codebase in seconds. The whole tool is plain JavaScript running locally in your browser — no build step, no server, no upload — so it is safe for private or proprietary payloads.

Related tools

JSON FormatterJSON to TypeScriptJSON to Swift