Sorry for my lack of knowledge, but how do you get the data of an HTTP Get call when the parameter has dots? I am trying to connect to a Nest thermostat to get the temperature and the Get call has the form { “traits”: { “sdm.devices.traits.Temperature”: { “ambientTemperatureCelsius”: 19.23999 } } } so asking “traits.sdm.devices.traits.Temperature.ambientTemperatureCelsius” does not work. Thank you very much.
Use the key indexer. So for the example you give do:
var ambientTemp = traits["sdm.devices.traits.Temperature"]["ambientTemperatureCelsius"];
Bill, thanks so much!