SerializeJSONEx-Altova

www.altova.com Agrandir/Réduire tout Imprimer cette rubrique Un niveau supérieur

Accueil > 

SerializeJSONEx-Altova

Click to expand/collapseserialize-json-ex

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.

serialize-json-ex(("testval", 12345, xs:date("2018-10-10"), xs:boolean("1"))) returns '{"✔❸":["testval","2018-10-10",3,true]}'

 

 


© 2019 Altova GmbH