Product SiteDocumentation Site

10.3. The JSON output method

10.3.1. Serialization of a sequence of items

If the normalized sequence does not consist exclusively of JSON arrays and objects, an error jerr:JNSE0014 is raised.
If jsoniq-multiple-top-level-items is set to "no" and the sequence to be serialized does not consist of a single object or array, an error jerr:JNSE0012 is raised.
If jsoniq-multiple-top-level-items is set to "yes", then the JSON items in the sequence are serialized one by one as specified below, in the same order and without any separating character (except whitespaces, depending on the indent parameter).