Protobuff vs JSON - Objective-C / iOS

In Objective-C creating iOS apps, what is best suited for serialization? Protobuf or JSON?

+4
source share
2 answers

Protobuf is more efficient in time and space, JSON is probably more efficient in terms of nerves. While there is no reason for the first two (for example, due to the fact that the amount of data to be serialized is small and serialization is not time critical), I would stick with JSON.

It also makes debugging more fun :-)

+7
source

I don't know Protobuf, but JSONKit is a very good choice in iOS. See JSON vs. PLIST, Ultimate Showdown for performance comparisons. JSONKit is widely used and actively developed, which makes it a reliable choice.

+2
source

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


All Articles