decode-from-roundtrip
($items as item()*) as item()* external
This function decodes non-JSON types previously encoded with jn:encode-for-roundtrip. |
decode-from-roundtrip
($items as item()*, $options as object()) as item()* external
This function decodes non-JSON types previously encoded with jn:encode-for-roundtrip. |
encode-for-roundtrip
($items as item()*) as item()* external
This function recursively encodes non-JSON types in such a way that they can be serialized as JSON while keeping roundtrip capability. |
encode-for-roundtrip
($items as item()*, $options as object()) as item()* external
This function recursively encodes non-JSON types in such a way that they can be serialized as JSON while keeping roundtrip capability. |
flatten
($items as item()*) as item()* external
For each item in the given sequence, this function returns the item itself, if it is not an array, or a sequence of items "flattened-out" from the array. |
keys
($o as item()*) as string* external
Returns the set of keys belonging to the objects found inside a given sequence of items. |
members
($a as item()*) as item()* external
Returns the items belonging to the arrays found inside a given sequence of items. |
null
() as js:null external
Returns the JSON null. |
parse-json
($j as string?) as json-item()* external
This function parses a given string as JSON and returns a sequence of Objects or Arrays. |
parse-json
($j as string?, $o as object()) as json-item()* external
This function parses a given string as JSON and returns a sequence of Objects or Arrays. |
project
($items as item()*, $keys as string*) as item()* external
For each item in the given sequence, this function returns the item itself, if it is not an object, or its "projected" copy if it is an object. |
size
($a as array()?) as integer? external
Returns the size of a JSON array, or the empty sequence if no array is given. |
trim
($items as item()*, $keys as string*) as item()* external
For each item in the given sequence, this function returns the item itself, if it is not an object, or its "trimmed" copy, if it is an object. |
declare function jn:decode-from-roundtrip($items as item()*) as item()* external
declare function jn:decode-from-roundtrip($items as item()*, $options as object()) as item()* external
declare function jn:encode-for-roundtrip($items as item()*) as item()* external
declare function jn:encode-for-roundtrip($items as item()*, $options as object()) as item()* external
declare function jn:flatten($items as item()*) as item()* external
declare function jn:keys($o as item()*) as string* external
declare function jn:members($a as item()*) as item()* external
declare function jn:null() as js:null external
declare function jn:parse-json($j as string?) as json-item()* external
declare function jn:parse-json($j as string?, $o as object()) as json-item()* external
declare function jn:project($items as item()*, $keys as string*) as item()* external
declare function jn:size($a as array()?) as integer? external
declare function jn:trim($items as item()*, $keys as string*) as item()* external