Skip to main content

Converter

The Converter Activity is used to convert data between multiple formats. It simplifies transformations, enabling workflows to handle various data representations such as JSON, XML, HTML, and Base64 efficiently.

This activity supports a wide range of conversion options and accepts input data as its source.

Supported Conversion Options

1. XML to Base64

  • Description: Converts XML content into a Base64-encoded string. Useful when you need to transmit or store XML data in binary-safe formats.
  • Input: XML data.
  • Output: Base64 string.

2. HTML Table to Base64

  • Description: Converts HTML table content into Base64 encoding for secure transport or storage.
  • Input: HTML table data.
  • Output: Base64 string.

3. JSON to HTML Table

  • Description: Transforms JSON data into an HTML table representation, making it suitable for rendering or display purposes.
  • Input: JSON object or array.
  • Output: HTML table markup.

4. JSON to JSONata

  • Description: Transforms JSON using a JSONata query. This allows dynamic querying, restructuring, and extraction of data from complex JSON inputs.
  • Input: JSON object or array.
  • Additional Input: JSONata query expression.
  • Output: Transformed JSON based on query.

5. JSON to JSONPath

  • Description: Extracts specific values or objects from JSON data using a JSONPath expression.
  • Input: JSON object or array.
  • Additional Input: JSONPath query.
  • Output: Filtered JSON result.

6. JSON to GraphQL

  • Description: Converts JSON into a structure that can be queried using GraphQL-style queries. Useful for mapping or simulating API request/response structures.
  • Input: JSON data.
  • Additional Input: GraphQL query or query options.
  • Output: JSON structured according to the GraphQL query.

Fields

Input Data

  • Required: Yes
  • Description: The source data to be converted. This can be plain text, JSON, or structured content from previous workflow steps.

Query (Optional)

  • Required: Conditional
  • Description: Required for conversion types that involve query-based transformations such as JSONata, JSONPath, or GraphQL.

Example Use Cases

  • Converting API responses from JSON to HTML tables for email or reporting purposes.
  • Encoding XML or HTML data to Base64 for secure transfer.
  • Extracting specific fields or attributes from JSON payloads using JSONPath.
  • Restructuring JSON dynamically with JSONata or GraphQL queries.

Notes

  • Ensure the input data format matches the selected conversion type.
  • For query-based conversions, provide valid query syntax.
  • The output format depends on the chosen conversion type and is available to subsequent activities via the result object.