I'm dealing with JSON on python3 and I want to append an array into a json object, this is my code so far:
values = [20.8, 21.2, 22.4]
timeStamps = ["2013/25/11 12:23:20", "2013/25/11 12:25:20", "2013/25/11 12:28:20"]
myJSON = '{ Gateway: {"serial":"1001", "status":"ok"},
"Tag":{"TID":"FF01", "EPC":"EE01"},
"DataSet":{"sensorType":"temperature", "values":[], "timeStamps":[] } }'
Is there any easy way to append the arrays without having to cast them to string and inserted as plain text ?
Thanks in advance,