In Objective-C, making iOS apps, what is the best way to go regarding serialization? Protobuf or JSON?
Protobuf is more time- and space-efficient, JSON is probably more nerve-efficient. As long as there is no reason for the former two (eg because the amount of data to be serialized is small and serialization is not time-critical), I would stick to JSON.
This also makes debugging more fun :-)
I don't know Protobuf, but JSONKit is a very good choice on iOS. See JSON vs. PLIST, the Ultimate Showdown for a performance comparison. JSONKit is widely used and actively developed which makes it a solid choice.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.