JSON Parse

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

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

JavaScript string to be converted into an object:

“{ “Name”: “John”}”

When you enter this value in the ‘Add JSON 1’ field and run the workflow, you will get the following output:

{
Name: “John”
}

JSON-parse

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