JSONiq Extension to XQuery 1.0
Specification
XML and JSON: A Language To Rule Them All
Edition 1.0.4
Abstract
The JSONiq extension to XQuery allows processing XML and JSON natively and with a single language. This extension is based on the same data model as the core JSONiq and is based on the same logical concepts. Because of the complexity of the XQuery grammar, the JSONiq extension to XQuery has a less pleasant syntax that the JSONiq core.