‎09-19-2024 03:08 PM
aggelostsitsigmailcom_0-1726776017766.png
Although with this input I am able to have the correct output :
aggelostsitsigmailcom_1-1726776051723.png
When I try to write more to my JSON string i get this error :
aggelostsitsigmailcom_3-1726776186466.png
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?
json.JPG
‎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
aggelostsitsigmailcom_0-1726838352497.png
when i dont have the brackets i get and invalid string form but when i have them i get a type missmatch
aggelostsitsigmailcom_1-1726838506314.png
‎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:
aggelostsitsigmailcom_0-1726838352497.png
when i dont have the brackets i get and invalid string form but when i have them i get a type missmatch
aggelostsitsigmailcom_1-1726838506314.png
Now you format it as an array but asks it to unbundle a cluster ...