Skip to main content
Convert text to JSON
Wrk Product avatar
Written by Wrk Product
Updated over 5 months ago

Convert text into JSON.

Application

  • Text

Inputs (what you have)

Name

Description

Data Type

Required?

Example

Original text

The text you would like to convert into a JSON variable

Text (Long)

Yes

{“field1”:”value1”,“field2”:”value2”}

Note: the value of inputs can either be a set value in the configuration of the Wrk Action within the Wrkflow, or a variable from the Data library section. These variables in the Data library section are the outputs of previous Wrk Actions in the Wrkflow.

Outputs (what you get)

Name

Description

Data Type

Required?

Example

Output JSON

Text converted in a JSON variable

Text (Long)

Yes

{“field1”:”value1”}

Outcomes

Name

Description

Success

This status is selected if details are extracted from the JSON.

Impossible to Complete

This status is selected in the event of the following scenarios:

  • Original text is not in JSON format

Configuration

Did this answer your question?