A magical data modeling framework for JSON that automates model creation and validation for iOS, macOS, watchOS, and tvOS apps.
JSONModel is a data modeling framework for Objective-C that automates the creation of smart data models from JSON. It handles property mapping, type conversion, and validation, allowing developers to rapidly integrate JSON APIs into iOS, macOS, watchOS, and tvOS applications with minimal code.
Objective-C developers building apps for Apple platforms (iOS, macOS, watchOS, tvOS) who need to parse and validate JSON data from APIs or other sources.
Developers choose JSONModel because it eliminates boilerplate code for JSON parsing through automatic introspection and type conversion, supports complex nested models, and provides flexible customization options for key mapping and validation.
Magical Data Modeling Framework for JSON - allows rapid creation of smart data models. You can use it in your iOS, macOS, watchOS and tvOS apps.
Maps JSON keys to model properties automatically based on naming conventions, as shown in the basic usage where 'id' and 'country' are directly mapped without additional code, drastically reducing boilerplate.
Supports nested key mapping and snake_case conversion via JSONKeyMapper, allowing for complex JSON structures like 'orderDetails.price.usd' without modifying the source data.
Automatically converts JSON values to Objective-C types, such as strings to integers or numbers to strings, as demonstrated with 'dialCode' conversion from number to NSString.
Provides a customizable validate method for data integrity checks, enabling developers to add logic like minimum name length validation, as shown in the README examples.
Designed solely for Objective-C, making it unsuitable for Swift-only projects or those aiming to minimize Objective-C dependencies in modern Apple development.
Requires protocol annotations for model collections instead of native generics, which can be confusing and error-prone, as noted in the README with the need for both protocol and generics.
Relies on runtime introspection for property mapping, which may introduce performance overhead compared to compile-time solutions or manual parsing in performance-critical apps.
The better way to deal with JSON data in Swift.
Model framework for Cocoa and Cocoa Touch
Simple JSON Object mapping written in Swift
A fast, convenient and nonintrusive conversion framework between JSON and model. Your model class doesn't need to extend any base class. You don't need to modify any model file.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.