Replacing nulls with empty string from JSON response not working in iOS
问题 I used below code to replace nulls from json response with empty string, but it is not working. Please help me out to fix this issue, i am getting nulls from server response in lot of scenarios and App crashes. Code: - (NSMutableDictionary *)recursive:(NSMutableDictionary *)dictionaryResponse { NSMutableDictionary *dictionary=[[NSMutableDictionary alloc]initWithDictionary:dictionaryResponse]; for (NSString *key in [dictionary allKeys]) { id nullString = [dictionary objectForKey:key]; if (