Objectify is an application for Objective-C developers that creates Cocoa class from JSON. Whether you're working with web services or building everyday classes.
JSON is rapidly becoming the de facto standard data serialization format for web APIs, used in thousands of applications. Creating model classes based on this content has been a tedious chore that invites bugs and heartache.
Objectify saves you time and effort by spinning through any JSON content you give it, building customizable models that can be exported as Objective-C header and implementation files. New in version 1.1, model class implementations can now be generated with methods that will create a new instance of that class populated with data from an NSDictionary.
Though Objectify is a complete standalone app, if you're a user of the mighty Accessorizer, Objectify can use it for code generation so all your code style preferences are already taken care of!
Clever developers have noticed that this also makes Objectify a great prototyping and scaffolding tool. It only takes a few seconds to go from an idea for a class to having working code based on your favorite templates.
- Merges Array Members
JSON content often contains arrays of like objects. When these objects omit unset attributes, it can be tough to create an accurate model. Objectify can merge array members to create a complete model so you won't lose track of rare attributes.
- Your Code, Your Style
Objectify supports a number of style preferences. It can also apply prefixes and suffixes to class ivars, or add NSCoding compliance to your classes. If you have Accessorizer 2.9.3 or later, Objectify will "hand off" code generation to it so your code stays consistent.
- Our Templates or Yours?
While Objectify has its own simple templates for header and implementation files, it can also use your favorite Xcode®-compatible file templates — whether stock or with your own secret sauce.
- Flexible Input
There are plenty of ways to get your JSON into Objectify. It can fetch content from URLs, other applications, local .json files, or you can type your content in manually.
- Plays Well With Others
Objectify is Services-aware. You can use a context menu or key combo to easily send JSON text or URLs to it from any application. Try dragging your classes directly to your favorite text editor!
- Save Your Work
If you need step away while customizing your new models, or want to commit a snapshot to your SCM of choice, you can save your work into an .objson file to pick up where you left off later.