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
| Direction | Port | Label |
|---|---|---|
| Input | input | XML |
| Output | output | JSON |
Properties
| Property | Type | Default | Description |
|---|---|---|---|
XML fieldproperty | 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 arraysexplicitArray | boolean | false | Wrap every child element in an array, even when there's only one. |
Merge attributesmergeAttrs | boolean | false | Place element attributes alongside its children instead of under a $ object. |
Ignore attributesignoreAttrs | 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.