Some Watson IoT samples use a d in device payloads {"d":{"temp":20}}
. As here in embedded c: :
"{\"d\" : {\"temp\" : 34 }}"
Others don't use this d, they just send in format {"temp":20}
. Like this java sample:
//Generate a JSON object of the event to be published
JsonObject event = new JsonObject();
event.addProperty("name", "foo");
event.addProperty("cpu", 90);
event.addProperty("mem", 70);
Both work but I've had situations where I had to put in a d as a downstream app failed - and they said it was part of the api specification. I couldn't find that it actually is part of any specification. To d or not to d, that is the question?