开发者

Saving and Editing JSON on iPhone/iPod

开发者 https://www.devze.com 2022-12-14 08:44 出处:网络
What\'s the best method for editing and saving a JSON file on the iPhone/iPod? I know there are libraries that allow you to easily read JSON data, but are there any that all开发者_开发技巧ow you to ge

What's the best method for editing and saving a JSON file on the iPhone/iPod? I know there are libraries that allow you to easily read JSON data, but are there any that all开发者_开发技巧ow you to generate it?


TouchJSON reads and generates JSON, is quite fast, and uses very little memory.

JSON Framework is supposedly faster, but uses much more memory.

The iPhone also includes a built-in JSON parser/generator, but it's only available through private APIs. You probably shouldn't use this one.


TouchJSON allows conversion both to and from JSON with a single call like:

[[CJSONSerializer serializer] serializeObject:someDictionaryofYours];

0

精彩评论

暂无评论...
验证码 换一张
取 消