This sounds exactly for what I was looking for!
Sadly, the function doesn’t work for me. It throws an error in this function:
function __emval_set_property(handle, key, value) {
handle = requireHandle(handle);
key = requireHandle(key);
value = requireHandle(value);
handle[key] = value
}
in here, handle is 1, which makes “requireHandle” return undefined, which breaks the last line of the function. I tried to comprehend with some debugging where this originates from, but it doesn’t seem to be coming from my code as far as I can tell.
Regardless, as I said I have the JSON solution right now, so this is not the most important thing right now! Just wanted to let you know!
Thanks for your answers!