NSJSONSerialization should have an option to ignore null

Originator:cedric.luthi
Number:rdar://14073132 Date Originated:05-Jun-2013 10:12 PM
Status:Open Resolved:
Product:iPhone SDK Product Version:6.1
Classification:Enhancement Reproducible:Not Applicable
 
Summary:
Please add the option to recursively ignore null values in dictionaries when deserializing JSON with NSJSONSerialization.

Steps to Reproduce:
Not Applicable

Expected Results:
Not Applicable

Actual Results:
Not Applicable

Regression:
Not Applicable

Notes:
Example JSON data:
{
    "firstName": "Cedric",
    "middleName": null,
    "lastName": "Luthi"
}

Example NSDictionary after deserializing with NSJSONSerialization and passing a new  option that would be named something like NSJSONReadingIgnoreNull:
{
    firstName = Cedric;
    lastName = Luthi;
}

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!