Skip to content

array of dictionaries JSON response #35

@wainglaister

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.

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