The standard USDS consists of the next parts: See also: USDS: Universal serialized data structures (or $S), a binary format which can replace XML and JSON completely. The main differences between XML and JSON are:
An example of the USDS document: ![]() The head includes:
The dictionary starts from the signature 'D'. The dictionary can be absent in the binary document. The sample dictionary shown above can be represented as follows: The dictionary contains tags' names and types. Some types require a size specification (for arrays, strings, etc). The strings require specification of a text encode. One or several tags can be defined as "root" tags (e.g. root tag in HTML is <html>). The body starts from the signature 'B'. The body can be absent in the binary document. The sample body shown above can be represented in XML as the text follows: The body can contain one or many root tags and they can be different types. 2015.07.31, Andrey Abramov Last update: 2013.10.03 |