Hello
I’m working on queuing MQTT messages in the absence of internet and I ran into a problem writing a file to disk, my input is
{“three”:2,“two”:2,“one”:2}
when I use function json_vfprintf
the data stored on the disk looks like this
{"“three”":1,"“two”":1,"“one”":1}
which is incompatible with JSON
Is it possible to call the function so that it doesn’t add another " to the JSON or in somehow delete extra " from file ?
Or it’s possible to convert mqtt_message in mjs to {three:2,two:2,one:2} not to {“three”:2,“two”:2,“one”:2} ??
let mqtt_message = {};
mqtt_message.one = i;
mqtt_message.two = i;
mqtt_message.three = i;