altova:serialize-json-ex(InputSequence as items()*) as xs:string XP3.1 XQ3.1
This function takes a sequence of items (of any type), serializes the items in JSON format, and returns the serialized JSON text as a string. In the JSON output string, the key part of key–value pairs contains special characters (see example below); these are of significance only internally, and are used to restore the original input sequence from th JSON string. To convert the JSON string back to the original sequence of items, use the parse-json-ext function.
© 2019 Altova GmbH