Demo Transform

演示数据转换节点 - 用于转换和处理数据

Demo Transform

AI-generated

Summary

Transform text from an input field by applying one of several operations: uppercase, lowercase, reverse, length count, or split by a separator, storing the result in an output field.

Inputs

  • 转换类型 (required) — Select the transformation type: toUpper (uppercase), toLower (lowercase), reverse, count (length), or split (split text by separator).
  • 输入字段 (required) — The field name in the incoming JSON data to extract text from; supports nested access with dot notation (e.g., 'data.title').
  • 分隔符 — The separator string used only if the 'split' transform type is chosen (defaults to ',').
  • 输出字段 (required) — The name of the output field where the transformed result will be stored.

Output shape

a list of JSON items, each item containing all original fields plus a new field named per the '输出字段', holding the transformed value which can be a string, number, or array (for split).

If the input field is missing or empty, the output item includes a '_debug' field with diagnostic information. Errors during transformation can be caught based on node error handling settings.

Examples

Example 1: Transform the 'data.text' field to uppercase and store in 'result'.

transformType=toUpper, inputField='data.text', outputField='result'

Discussion