Skip to main content

Supported Data Formats

WSO2 Integrator, powered by Ballerina, provides built-in support for a comprehensive set of data formats used in integration scenarios. Ballerina's type system enables type-safe parsing, transformation, and serialization across all formats.

Data format reference

FormatModule(s)ReadWriteStreamingDescription
JSONBuilt-in, ballerina/data.jsondataYesYesYesNative JSON type with direct language support
XMLBuilt-in, ballerina/data.xmldataYesYesYesNative XML type with XPath-like navigation
CSVballerina/data.csvYesYesYesComma-separated values with configurable delimiters
EDIballerina/ediYesYesNoX12, EDIFACT, and custom EDI formats
YAMLballerina/yamlYesYesNoYAML data serialization
TOMLballerina/tomlYesYesNoTOML configuration format
Protocol Buffersballerina/protobufYesYesYesBinary serialization via gRPC
Avroballerina/avroYesYesYesApache Avro binary format
FHIRballerinax/health.fhir.r4YesYesNoHL7 FHIR R4 healthcare resources
HL7ballerinax/health.hl7v2YesYesNoHL7 v2 pipe-delimited healthcare messages

Format conversion matrix

Common format-to-format transformation patterns supported in WSO2 Integrator:

FromToApproach
JSONXMLxmldata:fromJson() or data mapper
XMLJSONxmldata:toJson() or data mapper
JSONCSVcsv:toBytes() via record binding
CSVJSONcsv:parseString() then .toJson()
EDIJSONGenerated EDI types then .toJson()
JSONEDIJSON to record then toEdiString()
HL7FHIRhealth.fhir.r4 transformation APIs
JSONAvroavroSchema.toAvro()
AvroJSONavroSchema.fromAvro() then .toJson()

See also