Maps and JSON tofile fromfile
Posted: 22 May 2019 07:02
Hi,
I am at a point to store some data and like to use JSON format,
combined with maps into a file.
The flow creates the map:
cMap=newMapFromValues("triggertime",triggertime,"name","Martin","phone","+486145558","info","Info");
js=toJSON(cMap);
The action stores the variable js into the file, all OK.
Next time the flow starts I read the stored map, do a
cMap=from JSON(var);
Now I want to have the next data
cMap1=newMapFromValues("triggertime",triggertime,"name","Desmanto","phone","+626163451","info","Info1");
combined with cMap, stored as JSON again in the file, so now there are 2 records.
How to add cMap and cMap1?
Thanks a lot,
Regards,
I am at a point to store some data and like to use JSON format,
combined with maps into a file.
The flow creates the map:
cMap=newMapFromValues("triggertime",triggertime,"name","Martin","phone","+486145558","info","Info");
js=toJSON(cMap);
The action stores the variable js into the file, all OK.
Next time the flow starts I read the stored map, do a
cMap=from JSON(var);
Now I want to have the next data
cMap1=newMapFromValues("triggertime",triggertime,"name","Desmanto","phone","+626163451","info","Info1");
combined with cMap, stored as JSON again in the file, so now there are 2 records.
How to add cMap and cMap1?
Thanks a lot,
Regards,