I'm try to set an NSDictionary to a JSON object retrieved from the server, I'm doing that in this line:
_peopleArray = [NSJSONSerialization JSONObjectWithData:data options:0 error:nil];
It works fine and properly creates the dictionary. However, I have a problem, values that are null
in the JSON object are stored as "<null>"
string values in the dictionary. Is there any way to fix this or work around it? I want to avoid traversing through the entire thing and setting them to @""
.
Thanks for any help!
~Carpetfizz