I receive from from the server the following JSON:
{
.....
"id":"predifined_id",
...
}
In the code I have an int definition for the predifined_id:
#define predifined_id 5
Which means that if I use predifined_id in code it will be translated to int = 5.
How can I fetch this value (5) when I am parsing the JSON?
I have converted the JSON to NSDictionary
, but the value that I receive for @"id" key, is NSString