I\'ve got an app where I use a JSON based API. As part of JSON, often values are set to \"null\". This may be common:
{\"data\":[\"one\",\"two\",\"three\"]
I've tried some recursive solutions but they tend to be complicated and don't handle mixed type content well. At the simplest level here is a flat example that works well if you have a predictable, flat response to clean.
NSMutableDictionary *dictMutable = [dict mutableCopy];
[dictMutable removeObjectsForKeys:[dict allKeysForObject:[NSNull null]]];