@zaaphod said in JSON RETRIEVER: Error 400:
{"slot":0,"io":{"di":[
{"diIndex":0,"diMode":0,"diStatus":0},
{"diIndex":1,"diMode":0,"diStatus":0},
{"diIndex":2,"diMode":0,"diStatus":0},
{"diIndex":3,"diMode":0,"diStatus":0}
]}}
You're already 90% of the way there.
I'd argue your code will be something like this since there is no "result" property in your incoming data.
var data = JSON.parse(content);
data = data.io.di; //lets get the info we want.
However, you still need to be able to have a means to link what diIndex is what point.
If you have the points configured with a specific XID or naming convention, we can use that to map it all together.
Fox