Skip to content

JSON to Data

JSON to Data takes information in JSON format and turns it into NappAI data, so the following components can read each field separately. JSON is the most common format for exchanging information between applications: a list of fields, each with a name and a value.

You can connect the JSON another step returns, or type it yourself in the component.

When to use it

  • Use the JSON response of an external service in the next steps of your flow.
  • Type fixed test data by hand, such as a sample customer, while you build a flow.
  • Define a fixed configuration (prices, thresholds, texts) that other components read.
  • Turn a JSON list into several records so you can handle them one by one.

Configuration

FieldWhat it does
ModeHow you provide the JSON. Data Entry (default): you connect it from another component. Manual Entry: you type it in the component.
JSON (required with Data Entry)The JSON content coming from another component. If it is a list, each item becomes a record.
JSON Text (required with Manual Entry)The JSON text you type.

In Manual Entry the component tolerates small typing slips, such as field names without quotes or an extra comma before a closing bracket.

Output

The Data output returns the converted data: one record for each item in the list, or a single record if you typed the JSON by hand.

You can connect it to any component that works with data, such as Get Value By Key to read a specific field.

Example

While you prepare a welcome flow, you choose Manual Entry and type a test customer in JSON Text:

{"name": "Laura Gómez", "plan": "Premium", "country": "Spain"}

The following components read name and plan to write the message. When the flow is ready, you switch to Data Entry and connect the real data.