MDC Serialization
The data container package for MATRIXX Java components provides three different formats for serialization: XML, JSON, and OpenAPI JSON. These serialization formats depend on MATRIXX MDC definition files. MDC serialization describes data containers, structs, simple types, arrays and lists, and special fields.
These three serialization formats have "special fields" or specific sequences of tags (XML) that are required to decode messages into the correct data container representation. XML, JSON, and OpenAPI JSON describes the three formats.
Format | Description |
---|---|
XML | XML uses tags introduced with angled brackets around the name of the
tag. Tags indicate the beginning and ending of a field, and the
beginning and ending of a container. An empty tag (an empty field) is
one tag that ends with a
/ .EXAMPLE: The
following example shows a field named MyField and a
container named "MtxRequestSubscriberModify. Note that the start and
end tag are slightly different, the end tag begins with a
/ .
EXAMPLE: The following example shows an empty tag.
Note that the
space between the tag name and the |
JSON | In JSON, the start of an object and end are
and respectively. The
field holds the name of the MDC.
EXAMPLE: The following example
shows an MDC named
"MyContainer":
|
OpenAPI JSON Style | The OpenAPI JSON format conforms to OpenAPI specifications. It uses
the following fields: mtx_container_name ,
mtx_sys_ver , and mtx_ext_ver . Each
represents metadata about the MDC.The
The
The EXAMPLE: The
following example shows an OpenAPI JSON example with an MDC named
"MyContainer".
|
The following sections described how objects and fields are used. For information about custom MDCs, see the discussion about working with custom MDCs.