Skip to content

Data to JSON

Data to JSON converts one or more records in your flow into data in JSON format, the standard format applications use to exchange structured information. Dates and other special values are turned into text so the result is always valid.

Use it when the next step needs to receive the information as a structured object or list, for example a code component or a request to another service.

When to use it

  • Prepare an order’s data to send it to your online shop platform or ERP.
  • Pass a customer list to a code component that processes it.
  • Store the result of an analysis in a structured field.

Configuration

FieldWhat it does
DataThe record or list of records you want to convert.

This component supports Batch Mode to process lists record by record. See Key concepts.

Output

The JSON output returns:

  • an object, if you connect a single record;
  • a list of objects, if you connect several.

Each object holds the record’s fields and values. If no data arrives, it returns an empty list.

If you need the same content as text (for example, to include it in a message or a prompt), use Data to JSON(String).

Example

You want to send new orders to your logistics system.

  1. Get the orders and connect them to Data.
  2. Connect the JSON output to an API Request that sends them to the logistics system.