38
JSON Response
Every service will answer with a response from the device. This is the JSON object for the response:
JSON response object
{
"cid" : number,
"adr" : service_address,
"reply" : "reply_data"
"data" : "serialized_data",
…
"code" : number(see http_codes)
}
Field explanation
cid
This is the very number that was given in the request.
If an error happens so early that the cid can't be tracked by the
system or no cid was given in the request, the cid = -1 will
be returned.
adr
The address of the service that was called. For http GET request this
field may be omitted.
reply
Optional:
reply_data sent in the JSON request.
data
Optional:
serialized data - in case the service has a data response
code
This is the http protocol response code.
Code numbers greater or equal to 100 are valid response codes.
See chapter ->