Search code examples
iosjsonios6

which is the best and easy JSON parsing library


my next project fully depends on the web. there are lot of requests and need to fetch data from server, I want to know which is the best and easy JSON parsing library for ios 6


Solution

  • The one that is built into iOS - NSJSONSerialization

    It is faster than anything else I have used and is super easy to implement.

    Here is a simple example (I am using AFNetworking for the request):

    NSData *responseData = [operation responseData];
    id retObj;
    NSError *error = nil;
    if (responseData) {
        retObj = [NSJSONSerialization JSONObjectWithData:responseData options:0 error:&error];
    }