NSJSONSerialization should have an option to skip null entries

Originator:matt.massicotte
Number:rdar://12607969 Date Originated:31-Oct-2012 10:53 AM
Status:Open Resolved:
Product: Product Version:
Classification: Reproducible:
 
NSJSONSerialization's JSONObjectWithData:options:error: can produce NSArray/NSDictionary objects that contain NSNull instances.  That's reasonable, since JSON can encode these.  But, there are cases were that's not desirable behavior.

I'd love to have an additional NSJSONReadingOptions value that does not add NSNulls, and just treats those values as not present.

Duplicates

Number Status Originator Product Title
rdar://14500194 Duplicate/12607969 marcelofabri.mf iOS SDK NSJSONSerialization should have an option to skip null entries

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!