dchohfi / KeyValueObjectMapping

Automatic KeyValue Object Mapping for Objective-C, parse JSON/plist/Dictionary automatically
http://dchohfi.com/
MIT License
602 stars 90 forks source link

Fixes #98 - handle simple values in JSON array responses #96

Open mungler opened 2 years ago

mungler commented 2 years ago

This patch allows simple (non-object) arrays at the top level of the JSON data. Previously KVOM assumed that any top-level array was populated with JSON objects - i.e. should be parsed as an array of dictionaries.

This allows simple array responses, such as arrays of strings, to be processed correctly.