JSON Encoded Data

These examples have been formatted for easier reading. Newlines are not required in the actual JSON data.

Single “message” supplied via “values” JSON object:

{ "target": "UID998783",
"code": "mp10",
"time": "2014-07-24T18:47:43Z",
"location": {"latitude":37.795227, "longitude":-122.398828},
"values": {"temp": 98.6, "humidity": 68.2}
}

Multiple “messages” supplied via “values” JSON array of objects. Each of the array elements supplied via the “values” JSON array will generate one message on the server all of which will have the same “time” and “location” values.

{ "target": "UID998783",
"code": "mp10",
"time": "2014-07-24T18:47:43Z",
"location": {"latitude":37.795227, "longitude":-122.398828},
"values": [{"temp": 98.6, "humidity": 68.2}, {"temp": 101.4, "humidity":
70.4}]
}

Message Field Description

target

code

time

location

JSON Message Specific Fields

A JSON object or an array of objects named values will contain one or more JSON values that are to be processed as the message values that correspond to the message identified via the code field value.

values

values (array)

Message Sending Strategies