I am calling my hubitat to get the value of a specific device. The order of the JSON changes routinely when I make the call - two examples below. I know that JSON order is not required to be consistent but the system I am reading this into can't handle the changing location of the elements. I am not quite sure why the order is changing in hubitat - is this something I can control? Thanks.
{"id":"1796","name":"Presence - All Home (Virtual)","label":"Presence - All Home (Virtual)","type":"Virtual Values","room":null,"attributes":[{"name":"number","currentValue":100,"dataType":"NUMBER"},{"name":"level","currentValue":100,"dataType":"NUMBER"},{"name":"switch","currentValue":"off","dataType":"ENUM","values":["on","off"]},{"name":"text","currentValue":"2","dataType":"STRING"}],"capabilities":["Actuator","Notification","SwitchLevel",{"attributes":[{"name":"level","dataType":null}]},"Switch",{"attributes":[{"name":"switch","dataType":null}]},"Sensor","SpeechSynthesis"],"commands":["deviceNotification","off","on","setLevel","setNumber","setText","speak"]}
{"id":"1796","name":"Presence - All Home (Virtual)","label":"Presence - All Home (Virtual)","type":"Virtual Values","room":null,"attributes":[{"name":"number","currentValue":100,"dataType":"NUMBER"},{"name":"level","currentValue":100,"dataType":"NUMBER"},{"name":"text","currentValue":"2","dataType":"STRING"},{"name":"switch","currentValue":"off","dataType":"ENUM","values":["on","off"]}],"capabilities":["Actuator","Notification","SwitchLevel",{"attributes":[{"name":"level","dataType":null}]},"Switch",{"attributes":[{"name":"switch","dataType":null}]},"Sensor","SpeechSynthesis"],"commands":["deviceNotification","off","on","setLevel","setNumber","setText","speak"]}