Comparison of the three parties in iOS JSON parsing library

Network data analysis framework  

1. JsonModel   

a JSON conversion library model, has a relatively simple interface. Model needs to inherit from JSONModel.

YyModel 2.     

yyModel relatively lightweight (only five count .h files), support for automatic JSON / Model conversion, support for the definition of the mapping process. API is simple, function is relatively simple. The author is said to be written by two weekends, we need to use caution.

3. MJExtension

domestic developers "little brother code" model developed JSON library, known as performance over JSONModel and Mantle, using a simple non-invasive. China has a large number of users.

4. Mantle sing

Github official team development model JSON conversion library, Model need to inherit from MTLModel. Feature-rich, well documented, widely used.

Type conversion is too anxious to catch the deeper analytical level logic model is more complex

logic key mapper really want to vomit blood

5. JsonKit      

more popular before 6. TouchJson 13 years

7. SBJson not recommended

8. The primary analysis method Json NSJSONSerialization faster we need manual model to resolve the more time-consuming. Be efficient, be installed for free, but cumbersome and error prone.

2013 statistical results

9. FastEasyMapping

Yalantis developed a model JSON conversion library, you can customize detailed Model mapping process, support CoreData. Fewer users.

SBJSON in most tests are in the first or penultimate position of the reciprocal. So, SBJSON in fact, the performance of this sense, is indeed a very "SB" is really not worthy of our pictures. Quickly put your JSON parsing library into another bar!

 

JSONKit itself to do a lot of optimization on memory, so I do not support ARC, you can use it together with the compiler flag -fno-objc-arc of the can


Guess you like

Origin www.cnblogs.com/Free-Thinker/p/11199766.html
Recommended