Posts

Post not yet marked as solved
4 Replies
861 Views
We used to call [NSJSONSerialization dataWithJSONObject:data options:0 error:&error] directly. If data isn't json convertiable, the call will pass the invalid-json-format-error into the error pointer. That's how we catch the error. But since we update xcode's version to 11 yesterday, we notice some of our test cases failed because for handling not json convertiable data, dataWithJSONObject decides to throw an exception. Our code isn't ready for that. Does anyone also have this issue? Does Apple just silently change its API bahavior without noticing us?
Posted
by chuang05.
Last updated
.