A lightweight Objective-C library for mapping and validating data from dictionaries to model objects in iOS apps.
PropertyMapper is an Objective-C library for iOS that automates data parsing from dictionaries or arrays to model objects. It solves the problem of writing repetitive, error-prone parsing code by providing declarative mapping, type conversion, and validation in a lightweight package.
iOS developers working with Objective-C who need to parse JSON or dictionary responses from APIs into model classes, especially those seeking a minimal alternative to heavier ORM libraries.
Developers choose PropertyMapper for its simplicity, self-contained design, and focus on reducing boilerplate. It offers essential features like validation and type boxing without the complexity of larger frameworks, making it easy to adopt and maintain.
Property mapping for Objective-C iOS apps.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Uses a concise dictionary syntax to define property mappings, such as mapping 'videoURL' to 'contentURL', significantly reducing repetitive boilerplate code.
Automatically boxes strings to native types like NSURL and NSDate with extensible boxers, handling common conversions without manual code.
Allows chaining validators like isRequired() and lengthRange() on properties, ensuring data integrity before mapping and preventing corrupted updates.
Property name macros like KZProperty help catch typos during compilation, reducing runtime errors from misspelled keys.
Limited to Objective-C projects; no native Swift support, making it cumbersome for modern iOS development where Swift is predominant.
Relies heavily on unit tests as documentation, which can be insufficient for complex use cases or quick onboarding without deep diving into code.
Has a smaller community and fewer third-party extensions compared to libraries like Mantle, limiting support and ecosystem tools.