A couple of months ago I mentioned a very extensive Objective-C data model framework called Mantle that provides an interesting alternative to Core Data with a number of useful functions such as the capability of turning your objects into JSON dictionaries.
Today I came across a new project from Marin Todorov called JSONModel. This framework was created to reduce the amount of issues when working with the many different iOS libraries that use JSON data such as AFNetworking.
Here’s a list of some of the interesting features:
- Rapidly write model code
- Validation of the model’s input
- Atomic data
- Type casting between JSON and Obj-C
- Built-in data transformers
- Custom data transformers
- Model cascading
- Convert back & forth from/to JSON
- Persist model state in memory or file
You can see in detail the syntax used for each of these features on a Touch Code Magazine post here.
You can download the current versions from the homepage here.
You can also find a video demonstrating how to gather data from Twitter and place within a JSONModel object, and display that information on the screen on Vimeo here.
The framework is still in beta (use at your own risk) but it looks like it’s off to a great start.
Original article: Open Source JSON Based Data Model Framework
©2012 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.





