JSON Stringify

Using this activity, you can convert any JavaScript value into a string in JSON format. To achieve this, add this action to your canvas, and configure it. In the ‘Object Reference 1’ field, enter the JavaScript value that you wish to convert into JSON object. You can add multiple value by clicking the ‘+Add Object Reference’ link. Once you enter the value, click on ‘Done’ and run the workflow. This will convert the specified JavaScript value into a JSON string. 

Let’s understand this with the help of an example. 

JavaScript value to be converted:

{

Name: “John”

}

When you enter this value in the ‘Object Reference field’ and run the workflow, you will get the following output:

“{ “Name”: “John”}”

json-stringify


Output:
  • output-arrow json-parse JSON Stringify
    • left-triangle output array