We are following the documentation in https://github.com/concord-consortium/codap/wiki/CODAP-Data-Interactive-Plugin-API#example-attribute-list-get which says:
{
"action": "get",
"resource": "dataContext[DataCard2].collection[Measurements].attributeList"
}
return data of this form:
{
"success": true,
"values": [
"SampleDate",
"Height",
"Age",
"Flavor"
]
}
However, in our runtime, we found the returned values was structured like so:
[
{
"id": 8,
"name": "y",
"title": "y"
},
{
"id": 9,
"name": "timeAirborne",
"title": "timeAirborne"
},
{
"id": 12,
"name": "launchSpeed",
"title": "launchSpeed"
},
{
"id": 13,
"name": "launchHeight",
"title": "launchHeight"
},
{
"id": 14,
"name": "sampleNumber",
"title": "sampleNumber"
}
]
Tagging @bfinzer and @matthew-blackman so they are aware
We are following the documentation in https://github.com/concord-consortium/codap/wiki/CODAP-Data-Interactive-Plugin-API#example-attribute-list-get which says:
return data of this form:
However, in our runtime, we found the returned
valueswas structured like so:Tagging @bfinzer and @matthew-blackman so they are aware