Data Container Fields (Simple)
Simple fields are not arrays, lists, or subtype references.
For information about subtype references, see the discussion about data container
fields (subtype references). Each serialization is similar but unique due to the
differences in representing fields. In XML, it is based on tags; JSON uses its own
field name and a colon ( : ) separator. Simple Field Examples includes examples of how a PhoneNumber
field is
represented in each format. describes how different data types are represented.
Format | Example |
---|---|
XML |
|
JSON |
|
OpenAPI JSON Style |
|
Some data types can have different, specific representations in serialized data containers. XML is unique because all of the fields follow the same convention: a start tag and end tag with the value represented as a text string within those two tags. JSON is different because it has two different value representations: numbers and text. Data Type Variations includes examples of how these fields are represented in MATRIXX field types, JSON, and OpenAPI.
Format | Numbers / Unquoted Fields | Text |
---|---|---|
MATRIXX Field Types |
|
|
JSON |
|
|
OpenAPI JSON Style |
|
|