title: Mapping JSON objects in custom objects
body: <p>I've been searching if it is possible to get a JSON dictionary or array and directly map it in a custom object whose properties have the same name as the JSON tags, but I din't find any information regarding that.</p>
  
  <p>I've been parsing JSON dictionaries manually, like this:</p>
  
  <pre><code>id deserializedObj = nil;
  id jsonObject = [NSJSONSerialization JSONObjectWithData:jsonData
                                                  options:NSJSONReadingAllowFragments
                                                    error:&amp;error];
  if ([jsonObject isKindOfClass:[NSDictionary class]]) {
          NSDictionary *jsonDictionary = (NSDictionary *)jsonObject;
  
    if ([jsonDictionary objectForKey:idTag] != [NSNull null])
       [myObject setID:[[jsonDictionary objectForKey:@"id"] integerValue]];
  
    // Rest of properties
  }
  </code></pre>
  
  <p>But I find weird having to parse each dictionary entry manually and not having a way to directly serialize it into a custom object, isn't there any other and faster way?</p>
  
  <p>Note: I need my app to be compatible with iOS 5+</p>
  
  <p>Thanks in advance </p>