XML to JSON String Transformation

Plugin version: 2.11.0

Accepts a field that contains a properly-formatted XML string and outputs a properly-formatted JSON string version of the data. This is meant to be used with the Javascript transform for the parsing of complex XML documents into parts. Once the XML is a JSON string, you can convert it into a Javascript object using:

var jsonObj = JSON.parse(input.jsonevent);

Configuration

Property

Macro Enabled?

Description

Property

Macro Enabled?

Description

Input Field

No

Required. Specifies the input field containing an XML string to be converted to a JSON string.

Default is body.

Output Field

Yes

Required. Specifies the output field where the JSON string will be stored. If it is not present in the output schema, it will be added.

Default is json_body.

Output Schema

No

Required. The output schema for the data.

 

Created in 2020 by Google Inc.