ballerina/xmldata

Package overview

This package provides functions to perform the conversion between xml and json. It provides APIs to convert a natural representation of data in XML into a natural representation of data in JSON and vice-versa.

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.