Error Data Added

Error Data Added

I'm adding a payload parser on my device to insert the data into the bucket.
It turns out that the variable ends up returning an object error, and the modified data is already in a string. What could be happening?
My Payload Parser:

const myDevice = raw_payload[0].device.replace(/ /g, "");
const myValue = raw_payload[0].value.toString();
const myTS = raw_payload[0].timestamp;


console.log(typeof(myValue));
payload = [];
payload.push({"variable": myDevice, "value": myValue, "time": myTS});


Result of Parser:



And if I put myValue as a variable, it is added correctly, even though they both have the same type.

const myDevice = raw_payload[0].device.replace(/ /g, "");
const myValue = raw_payload[0].value.toString();
const myTS = raw_payload[0].timestamp;


console.log(typeof(myValue));
payload = [];
payload.push({"variable": myValue, "value": myDevice, "time": myTS});



If anyone has a tip I would appreciate it