You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any plan on supporting this like TouchJSON and other parsers do? For now I've added an NSDictionary category that checks for null values and return nil instead. I've tried adding that directly to the parser but that code is way beyond my knowledge ^^
The text was updated successfully, but these errors were encountered:
No. That isn't a feature, it's a bug. If TouchJSON is actually doing that, you should file a bug with that project NSNull is != to nil for a very, _very_ good reason, and you should never treat it as if it was ==.
@johnezang, I disagree that it is a bug. While NSNull is not equal to nil, they both mean the absence of a value. A convenience of omitting them from the decoded dictionary is that you dont have to do both an Object comparison as well as a nil comparison to ensure your value is not in the dictionary.
Any plan on supporting this like TouchJSON and other parsers do? For now I've added an NSDictionary category that checks for null values and return nil instead. I've tried adding that directly to the parser but that code is way beyond my knowledge ^^
The text was updated successfully, but these errors were encountered: