XML To JSON

processing.xml-to-json Processing v0.1.0

Parses an XML string into a JSON object (xml2js-style: attributes under $, repeated elements become arrays).

Ports

DirectionPortLabel
InputinputXML
OutputoutputJSON

Properties

PropertyTypeDefaultDescription
XML field
property
string "body" Field on the input that holds the XML string (e.g. "body" from an HTTP response). Leave blank if the whole input is the XML string.
Always arrays
explicitArray
boolean false Wrap every child element in an array, even when there's only one.
Merge attributes
mergeAttrs
boolean false Place element attributes alongside its children instead of under a $ object.
Ignore attributes
ignoreAttrs
boolean false Drop element attributes entirely.

This page is generated from the node registry by gen-node-docs.mjs on every site build — ports, properties, defaults and visibility rules cannot drift from the code.