Skip to content

array of dictionaries JSON response #35

Description

@wainglaister

Not sure if I'm doing something wrong, but I have a request whose response is a simple array of dictionaries and it fails to map. I have resolved this by adding a line to ApiForm.swift (line 286):

if let arrayData = data as? [AnyObject] { return arrayData }

but I'm not sure if this is correct. Without this it's always trying to handle the response as a dictionary so it fails out.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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