...
- XML elements become JSON arrays
- XML attributes becomes "$" object with fields
- XML body text becomes "_" when there are attributes
- All element names are flattened to lowercase
- Attribute names are not flattened
XML posted to API | JSON in Schema | Note | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
| An empty element produces an object with an empty field value. | ||||||||||||||
|
| An empty child element is turned into an array value with a single empty value. | ||||||||||||||
|
| A collection of child elements with simple values is transformed into an array of values. | ||||||||||||||
|
| A collection of child elements with attributes and simple or non-existent values are transformed to an array of objects. Note that the attributes are held in the special "$" attribute of the object they refer to. | ||||||||||||||
|
| Similar to above but this demonstrates that the attribute names are not flattened. | ||||||||||||||
|
| Invalid XML leads to an error message which |
Kitewheel Hub Front-End Performance
...