Key Capabilities
- Bidirectional JSON to XML conversion with automatic format detection
- Minimal configuration required (the connector typically works with the default configurations)
- Configurable attribute prefixes and text property handling for accurate translations
- Custom formatting options including minification and root element naming
- Type conversion support with JSON type annotations for precise data handling
Overview
The JSON connector enables conversion between JSON and XML without requiring much configuration. The connector automatically detects whether input files are JSON or XML, and then the connector translates the file to the other format. The connector supports configurable syntax for distinguishing attributes and ensuring that the output is valid XML or JSON.Connector Settings
This section contains all of the configurable connector properties.Settings Tab
Connector Settings
Settings related to the core operation of the connector.Other Settings
Advanced Tab
Logging
Settings that govern the creation and storage of logs.
| Setting | Description |
|---|---|
| Log Level | The verbosity of logs generated by the connector. When you request support, set this to Debug. |
| Log Subfolder Scheme | Instructs the connector to group files in the Logs folder according to the selected interval. The Weekly option (which is the default) instructs the connector to create a new subfolder each week and store all logs for the week in that folder. Leaving this setting blank tells the connector to save all logs directly in the Logs folder. For connectors that process many transactions, using subfolders helps keep logs organized and improves performance. |
| Log Messages | Check this to have the log entry for a processed file include a copy of the file itself. If you disable this, you might not be able to download a copy of the file from the Transactions tab. |
Other Settings
Miscellaneous
Miscellaneous settings are for specific use cases.
| Setting | Description |
|---|---|
| Other Settings | Enables you to configure hidden connector settings in a semicolon-separated list (for example, setting1=value1;setting2=value2). Normal connector use cases and functionality should not require the use of these settings. |
Automation Tab
Automation Settings
Settings related to the automatic processing of files by the connector.Performance
Settings related to the allocation of resources to the connector.
| Setting | Description |
|---|---|
| Max Workers | The maximum number of worker threads consumed from the threadpool to process files on this connector. If set, this overrides the default setting on the Performance Settings portion of the Advanced Settings page. |
| Max Files | The maximum number of files sent by each thread assigned to the connector. If set, this overrides the default setting on the Performance Settings portion of the Advanced Settings page. |
Alerts Tab
SLAs Tab
Macros
Examples
Conversion Examples
Examples of converting between XML and JSON with the JSON connector are below.XML to JSON
XML input:JSON to XML
JSON input:JSON Type Conversions
When converting from XML to JSON, the connector treats all XML elements as strings except in two cases:- If the connector detects multiple elements or values in the same XML structure in the XML input, it treats them as an array.
- If you apply an XML attribute to specify the JSON output format, this attribute overrides the default string behavior. These attributes are listed in the table below.