Documentation

Parse Data

The Parse Data component processes and transforms raw data into structured formats, with support for various templates and separators.

Parse Data Component

Parse Data interface and configuration

Component Inputs

  • Template: {text}

    The template format for parsing

  • Data: Input data to parse

    The data to be parsed

  • Separator: Custom separator

    Character(s) used to separate fields

Component Outputs

  • Message: Parsed message output

    The resulting message after parsing

  • Data List: List of parsed data

    The parsed data in list format

Implementation Example

const parseData = { template: "{text}", data: "Sample text to parse", separator: "," }; // Output: // { // message: "Parsed: Sample text to parse", // dataList: ["Sample text to parse"] // }

Best Practices

  • Use clear and consistent template formats
  • Choose appropriate separators for your data
  • Validate input data before parsing
  • Handle parsing errors gracefully