开发者

Saving and Editing JSON on iPhone/iPod

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜