Hi
I have a data type “marker”
under marker i have some fields: “x”, “y”. “include”, related_to_company" and more
I have an action that i am adding markers to the data base with this information.
when ever i am creating or updating marker information, i would like to also to update a custom state “marker_json” type text.
in the end, i would like that “marker_json” will include only the x,y, and include infromation on the following format:
[ { “x”: 100, “y”: 150, “include”: true }, { “x”: 200, “y”: 250, “include”: false }, { “x”: 600, “y”: 150, “include”: true } ]
how can i do that?
i tried to do something like this in order to create the json from the list but it’s not working
THANKS!!