nathanday / ndjson

Objective-C JSON parser
1 stars 0 forks source link

classForPropertyName: fails if you have a dictionary within an array #72

Open nathanday opened 11 years ago

nathanday commented 11 years ago

classForPropertyName: uses class_getProperty if there is no custom type for the dictionary but class_getProperty returns the type of the array property, the work around is to us NDJSONClassesForPropertyNames( [NSMutableDictionary class], @"attribute-name" ); but it should get more information from the parse so it can no it should be a dictionary.