A fast, convenient and nonintrusive conversion framework between JSON and model. Dictionary-to-model framework with fast conversion speed and easy to use. A large number of unit tests have been carried out on various commonly used data scenarios. MJExtension is an ultra-lightweight framework that converts between dictionaries and models. Coding all properties of a model with only one line of code. Coding (archiving and unarchiving) of all attributes of the model can be achieved with just one line of code. @objcattributes should be added to class and property for declaration of Objc accessibility. After Swift4, please add attributes before @objcmodification. Swift to ensure properties can be exposed to ObjC used.
Features
- Easy to use, rich in features, fast conversion
- JSON string to model
- Nested model in model
- Model name to JSON key mapping
- Turn a dictionary array into a model array
- Convert a model into a dictionary
License
MIT LicenseFollow MJExtension
You Might Also Like
Gen AI apps are built with MongoDB Atlas
MongoDB Atlas provides built-in vector search and a flexible document model so developers can build, scale, and run gen AI apps without stitching together multiple databases. From LLM integration to semantic search, Atlas simplifies your AI architecture—and it’s free to get started.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of MJExtension!