# How can i convert a Value to a JSON file

**URL:** <https://discourse.nodered.org/t/how-can-i-convert-a-value-to-a-json-file/22564>\
**Category:** General\
**Created:** [3 March 2020 14:37 UTC](https://discourse.nodered.org/t/how-can-i-convert-a-value-to-a-json-file/22564 "2020-03-03T14:37:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Job-Hoogeboom](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/job-hoogeboom/32/19629_2.png) [@Job-Hoogeboom](https://discourse.nodered.org/u/Job-Hoogeboom)\
**Post date:** [3 March 2020 14:37 UTC](https://discourse.nodered.org/t/how-can-i-convert-a-value-to-a-json-file/22564/1 "2020-03-03T14:37:45Z")

</div>

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](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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [2 May 2020 14:37 UTC](https://discourse.nodered.org/t/how-can-i-convert-a-value-to-a-json-file/22564/2 "2020-05-02T14:37:46Z")

</div>

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