Stringify

This function card converts a typed value such as an object or a list into a JSON string. JSON is a standard format used by web developers to send data to and from RESTful web services.

This function is the inverse of Parse.

Input

Field Definition Type Required
object Value to convert to a string. The object can be any JSON type such as a list of objects, a list of text, or just a number. Object TRUE

Output

Field Definition Type
output String that contains the converted JSON value. String

Example

JSON object:

Copy
{
"id": "00un26wnom930KZKX0h7",
"created": "2019-08-19T16:52:35.000Z",
"lastUpdated": "2019-08-19T16:52:35.000Z",
"profile":
{
"firstName": "John",
"lastName": "Smith",
"email": "john.smith@okta.com"
}
}

JSON string output:

{"id":"00un26wnom930KZKX0h7","created":"2019-08-19T16:52:35.000Z","lastUpdated":"2019-08-19T16:52:35.000Z","profile":{"firstName":"John","lastName":"Smith","email":"john.smith@okta.com"}}

Related topics

Functions in Workflows

Workflow elements