09-19-2024 03:08 PM
Although with this input I am able to have the correct output :
When I try to write more to my JSON string i get this error :
I have tried to change the timestamp and sensor_data types to arrays but it didn't work.
Lastly I would like to parse a JSON file which contains information just like this but i cannot make the function start unless I have a JSON string, which defeats the purpose of reading a JSON file altogether.
Kindly address both my problems.
Thank you in advance
09-19-2024 05:02 PM
What data type are you trying to get in the second case?
09-19-2024 05:26 PM
Thank you very much for trying to help me .
I will test your solution and come back to you.
In the second case I try to parse a Json file that contains this type of data :
09-19-2024 05:47 PM
But what do you want to get?
only first cluster or array of clusters?
09-19-2024 06:06 PM
array of clusters
09-19-2024 06:12 PM
In this casetext has to be [{},{},{}], There are no square brackets in your string.
09-20-2024 08:22 AM
when i dont have the brackets i get and invalid string form but when i have them i get a type missmatch
09-20-2024 08:27 AM
You need to wire an array of cluster for type
09-20-2024 09:42 AM
aggelostsitsi@gmail.com wrote:
when i dont have the brackets i get and invalid string form but when i have them i get a type missmatch
Now you format it as an array but asks it to unbundle a cluster ...