Atomic types

Atomic types are organized in a tree hierarchy.

JSONiq defines the following build-in types that have a direct relation with JSON:

JSONiq also supports further atomic types, which were borrowed from XML Schema.

These datatypes are already used as a set of atomic datatypes by the other two semi-structured data formats of the Web: XML and RDF, as well as by the corresponding query languages: XQuery and SPARQL, so it is natural for a complete JSON data model to reuse them.

JSONiq mostly follows the W3C standard regarding atomic types, the main difference being that buitin atomic types are not prefixed in the syntax integer instead of xs:integer), and that there is a type specific to JSONiq: null. The detailed specification is found here.

Figure 6. AtomicType