So I\'m trying to do a GET request that returns some Json. The json that gets returned from this request has an id attribute, so the class that I use NSJSONSerialization to pars
If you passed
{
id: 123,
name: "Chris"
}
to NSJSONSerialization
as an NSData
object you would get an NSDictionary
with two keys that are NSString
's with the value @"id"
and @"name"
, at that point you can take the value from the id
key and pass it to an attribute on your Objective-C model that is named something other than id
. An example being recordId