Closed kevinlsk closed 3 years ago
There are a couple of reasons to not serialize nil value:
NSJSONSerialization crashes with NSNull.
Only optional NSManagedObject property can have nil value. A nil value indicates that this propery is not set.
When we deserialize NSNull from JSON to NSManagedObject, we skip NSNull anyways.
There are a couple of reasons to not serialize nil value:
NSJSONSerialization crashes with NSNull.
Only optional NSManagedObject property can have nil value. A nil value indicates that this propery is not set.
When we deserialize NSNull from JSON to NSManagedObject, we skip NSNull anyways.