Skip to content

Adapter returns stringified array #291

@MBuchalik

Description

@MBuchalik

When requesting data using the Adapter, we get a response like this:

{"id":1234,"data":"[{\"column1\":\"first\",\"column2\":\"second\",\"column3\":\"third\"}]"}

Expected result:

The "data" field should be an actual array.

{
  "id":1234,
  "data": [
    {"column1":"first","column2":"second","column3":"third"}
  ]
}

Actual result

The "data" field is currently a string. So you need to run JSON.parse() in order to get the actual data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions