Skip to main content

Parse

The Parse node converts data between different formats. It can parse raw text into structured data (JSON, XML, CSV) and convert between these formats. This is essential when working with APIs, file-based integrations, and systems that use different data formats.

Actions​

ActionDescription
parse:jsonToXmlConvert a JSON object to XML
parse:xmlToJsonConvert XML to a JSON object
parse:csvToJsonParse CSV text into a JSON array
parse:jsonToCsvConvert a JSON array to CSV text
parse:yamlToJsonConvert YAML to JSON
parse:jsonToYamlConvert JSON to YAML
parse:parseJsonParse a JSON string into an object
parse:parseXmlParse an XML string into a structured object
parse:stringifyConvert an object to a JSON string

parse:jsonToXml​

Converts a JSON object into an XML document string.

Parameters

ParameterTypeRequiredDescription
inputobject/stringYesJSON object or variable reference
rootElementstringNoName of the root XML element. Defaults to root
declarationbooleanNoInclude XML declaration header. Defaults to true
indentbooleanNoPretty-print the XML. Defaults to true

parse:xmlToJson​

Converts an XML document into a JSON object.

Parameters

ParameterTypeRequiredDescription
inputstringYesXML content
trimTextbooleanNoTrim whitespace from text nodes. Defaults to true
arrayNotationbooleanNoAlways wrap child elements in arrays for consistency. Defaults to false

parse:csvToJson​

Parses CSV text into a JSON array of objects using the header row as field names.

Parameters

ParameterTypeRequiredDescription
inputstringYesCSV content
delimiterstringNoColumn delimiter. Defaults to ,
hasHeaderbooleanNoFirst row is a header. Defaults to true
columnsarrayNoColumn names (required if hasHeader is false)
trimValuesbooleanNoTrim whitespace from values. Defaults to true

Given CSV:

name,email,department
Alice,alice@example.com,Engineering
Bob,bob@example.com,Marketing

Result:

parse:jsonToCsv​

Converts a JSON array of objects to CSV text.

Parameters

ParameterTypeRequiredDescription
inputarrayYesJSON array of objects
delimiterstringNoColumn delimiter. Defaults to ,
includeHeaderbooleanNoInclude a header row. Defaults to true
columnsarrayNoSpecific columns to include (and their order). If omitted, all keys are included

parse:yamlToJson / parse:jsonToYaml​

Converts between YAML and JSON formats.

Parameters

ParameterTypeRequiredDescription
inputstring/objectYesYAML string (for yamlToJson) or JSON object (for jsonToYaml)

parse:parseJson​

Parses a JSON string into a usable object.

Parameters

ParameterTypeRequiredDescription
inputstringYesJSON string to parse

parse:parseXml​

Parses an XML string into a structured object for field-level access.

Parameters

ParameterTypeRequiredDescription
inputstringYesXML string to parse

parse:stringify​

Converts a JSON object to a formatted or compact JSON string.

Parameters

ParameterTypeRequiredDescription
inputanyYesObject to stringify
prettybooleanNoPretty-print with indentation. Defaults to false

Connection​

No connection required. This is a data transformation node.

Output​

The result type depends on the action: an object for parsing operations, a string for serialization operations, and an array for csvToJson.