james_womack
james_womack

Reputation: 10306

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 allow you to generate it?

Upvotes: 0

Views: 2517

Answers (2)

igul222
igul222

Reputation: 8637

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.

Upvotes: 1

Collin Allen
Collin Allen

Reputation: 4595

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

[[CJSONSerializer serializer] serializeObject:someDictionaryofYours];

Upvotes: 0

Related Questions