Is NSJSONSerialization more error resistant and robust than JSONKit?

Although according to JSONKit benchmarks it’s faster, the Github readme is full of warnings that do not match JSON, lead to crashes, etc.

It is more important for me that there is no failure and that distorted Unicode JSON or another subtle error in the JSON file does not cause a failure.

Perhaps the increase in speed is due to its rigor and inexorability in relation to errors? Is NSJSONSerialization more robust in this regard?

+4
source share
1 answer

This is a somewhat subjective question in that it can only be answered in terms of the experience of oneself and other developers.

I used both JSONKit and NSJSONSerialization and really prefer the latter. Regardless of what the benchmarks indicate, I did not notice a difference in speed in everyday use. However, I'm also used to doing my deserialization in the background thread, so speed differences may not show up in the user interface.

+2
source

Source: https://habr.com/ru/post/1413502/


All Articles