Skip to content

Mapping of simple JSON arrays (e.g. array of strings) #98

@mungler

Description

@mungler

The existing code makes the assumption that if mapping an array, the objects in the array are JSON objects, i.e.:

[ { "some": "object", "foo":"bar",...}, { "another":"object", "bar":"baz", ... }, {...}, {...} ]

But if the JSON array is a simple array of strings, for example:

[ "one", "two", "three", .... ]

The app will crash with:

'*** -[NSDictionary initWithDictionary:copyItems:]: dictionary argument is not an NSDictionary'

This is because of the assumption made that the array objects are JSON objects, not simple values.

This pull request fixes this issue: #96

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions