tags:

views:

198

answers:

2

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?

A: 

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

[[CJSONSerializer serializer] serializeObject:someDictionaryofYours];

Collin Allen
+1  A: 

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.

igul222