For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

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:

Last updated

Was this helpful?