ballerina/xmldata

Overview

This module provides APIs to perform conversions between XML and JSON. It provides APIs to convert natural representations of data in XML into natural representations of data in JSON and vice-versa.

For information on the operations, which you can perform with the xmldata module, see the below Functions.

Functions

[2]

fromJson

Converts a JSON object to an XML representation.

toJson

Converts an XML object to its JSON representation.

Records

[2]

JsonOptions

Represents a record type to provide configurations for the JSON to XML conversion.

XmlOptions

Provides configurations for converting XML to JSON.

Errors

[1]

Error

Represents the error type of the ballerina/xmldata module.