Search code examples
iosserializationjsonkit

NSNull value inside a object generated by JSONKit (or similar)


I'm storing the result of JSONKit parse in a key/value database (LevelDB), but the JSON I'm downloading has some filed set to null, and this won't let you serialize the corresponding generated object (NSArray or NSDictionary), to store it as an object.

¿Any idea how can I deep iterate over a NSSomething (Dictionary or Array) to change those values?


Solution

  • There is a post https://github.com/johnezang/JSONKit/issues/25 that explains how to modify the framework to omit it from dictionaries and array's