PROCESIO
OverviewPlatform ActionsIntegrations & DemosMarketplaceCustom ActionsDeveloperโ€™s Guide

Object To String

Turns any value (object, list, number, text) into its JSON text.

The Object To String action turns any value into text, written as JSON. Use it when an action or an API needs a text field but you hold an object or a list, for example to put a JSON object in an email body or in a text column.

This action was previously called ToString.

Add the action

In the Process Designer toolbox, open Converters and pick Object To String (or type Object To String in the search box).

The Object To String action properties: Input and Result

Inputs and outputs

FieldDirectionTypeRequiredWhat to put / what you get
InputInputAny typeYesThe value to convert.
ResultOutputTextYesThe value written as JSON text.

Example

InputResult
the object {"a":1,"b":[true,null]}{"a":1,"b":[true,null]}
the list [1,2,3][1,2,3]
the number 4242
the text hello"hello" (with the quotes)

Good to know

  • The output is compact JSON on a single line, without indentation.
  • A text comes back in quotes, because that is how JSON writes a text. If you need the plain text, you do not need this action.
  • To go the other way (text to JSON), use String To JSON.

On this page