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