ods
ods copied to clipboard
Adapter returns stringified array
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.