How can i convert a Value to a JSON file

Hi!

I'm still learning in Node-Red, I have a Schneider electric Smartlink SI D, it's a wireless Modbus gateway. I can read/receive the voltage, and current power in Node-Red. I want to send the data to Amazon AWS analytics so I can visualize it, but it has to be a JSON file for the AWS cloud to read it.

Here's an example of my flow

https://ibb.co/Q6qrYhb

can anyone help me to convert the value to a JSON string? for example : Voltage = 230

I would also like the values to be rounded to 2 decimal places

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.