Frustration on the Top !!!
I am getting some JSON Response from the Service and I want to store it in the .plist file
If your dictionary contains NSNull
, then writeToURL:atomically
: will fail.
For dictionaries, the keys must be NSStrings.
The problem is that some valid JSON can't be converted to property lists. Also, some valid property lists can't be converted to JSON.
Don't Forget, If you must use a property list, you will need to scan the entire dictionary and convert the nulls into something that can be saved in a property list file.
Only Solution is that you have to check all the NULL Values and Replace it with @" ".
Happy Coding...