Skip to content

Multigraph API response formatted incorrectly #681

Closed
@pb66

Description

Before replying to the "Get all ID’s of Multigraph" question on the forum, I thought I would try the api call to confirm it's working. This is a example response

[{"id":"100015","name":"occupancy","feedlist":"[{\"id\":\"100500\",\"tag\":\"Node 1\",\"name\":\"HeatRm1\",\"datatype\":\"1\",\"left\":false,\"right\":true,\"fill\":false,\"end\":0,\"skipmissing\":true,\"autorefresh\":\"30\",\"showtag\":false,\"timeWindow\":86400000,\"ymin\":\"0\",\"y2min\":\"0\",\"y2max\":\"4000\",\"ymax\":\"600\"},{\"id\":\"100505\",\"tag\":\"Node 2\",\"name\":\"LightsRm1\",\"datatype\":\"1\",\"left\":true,\"right\":false,\"fill\":false,\"end\":0,\"skipmissing\":true},{\"id\":\"100504\",\"tag\":\"Node 2\",\"name\":\"HeatRm2\",\"datatype\":\"1\",\"left\":false,\"right\":true,\"fill\":false,\"end\":0,\"skipmissing\":true},{\"id\":\"100501\",\"tag\":\"Node 1\",\"name\":\"LightsRm2\",\"datatype\":\"1\",\"left\":true,\"right\":false,\"fill\":false,\"end\":0,\"skipmissing\":true},{\"id\":\"100508\",\"tag\":\"Node 3\",\"name\":\"Ventilation\",\"datatype\":\"1\",\"left\":true,\"right\":false,\"fill\":false,\"end\":0,\"skipmissing\":true},{\"id\":\"100509\",\"tag\":\"Node 3\",\"name\":\"LightsCom\",\"datatype\":\"1\",\"left\":true,\"right\":false,\"fill\":false,\"end\":0,\"skipmissing\":true}]"}]

I'm not convinced all those backslashes are supposed to be there, I guess they were escaping the quotes at some point.

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions