Parse text to JSON transform action

Use case

You have received an API response of a JSON string instead of a JSON object and would like to convert it to a JSON object.

Overview

A screenshot of the parse test to JSON transform action, seen in the actions list menu of the workflow builder canvas.

Parse Text Data into JSON.

Parameters

Parameter
Description
Required

String Contents

String to convert.

You can utilize the Is JSON transform to test whether the string is valid JSON prior to parsing it with this transform.

Usage

Example: Parsing a JSON String

Inputs:

String Contents:

{"id":"676e061a-8004-4f60-ad37-cb0b2be25635","user":"Sean","age":32,"bio":"Hi, my name is Sean.\nI love hiking."}

Results output

Result of Example:

{
  "id": "676e061a-8004-4f60-ad37-cb0b2be25635",
  "user": "Sean",
  "age": 32,
  "bio": "Hi, my name is Sean.\nI love hiking."
}

Last updated

Was this helpful?