Changes

Jump to navigation Jump to search
No change in size ,  12:25, 3 April 2020
no edit summary
|}
==json:serializedoc== {{Mark|Introduced with BaseX 9.4:}}
{| width='100%'
|-
| width='120' | '''Signatures'''
|{{Func|json:serializedoc|$input uri as xs:string|item()?|xs:string}}<br/>{{Func|json:serializedoc|$input uri as item()?xs:string, $options as map(*)?|xs:stringitem()?}}<br />
|-
| '''Summary'''
|Serializes Fetches the specified {{Code|$input}} as JSON, using document referred to by the specified given {{Code|$optionsuri}}, and returns the result as string:* The input is expected to conform converts it to the results that are created by [[#json:parse|json:parse()]].* Non-conforming items will be serialized as specified in the [[an XQuery 3.1#JSON Serialization|json output method]] of the official recommendationvalue.Values can also be serialized as JSON with the standard [[Serialization]] feature of XQuery:* The parameter {{Code|method$options}} needs to argument can be set used to {{Code|json}}, and* control the options presented in this article need to be assigned to way the {{Code|json}} parameterinput is converted.
|-
| '''Errors'''
|{{Error|serializeparse|#Errors}} the specified node input cannot be serialized parsed as JSON document.<br/>{{Error|options|#Errors}} the specified options are conflicting.
|}
==json:docserialize== {{Mark|Introduced with BaseX 9.4:}}
{| width='100%'
|-
| width='120' | '''Signatures'''
|{{Func|json:docserialize|$uri input as xs:string|item()?|xs:string}}<br />{{Func|json:docserialize|$uri input as xs:stringitem()?, $options as map(*)?|item()?xs:string}}<br />
|-
| '''Summary'''
|Fetches Serializes the specified {{Code|$input}} as JSON document referred to by , using the given specified {{Code|$urioptions}} , and converts it returns the result as string:* The input is expected to conform to an the results that are created by [[#json:parse|json:parse()]].* Non-conforming items will be serialized as specified in the [[XQuery value3.1#JSON Serialization|json output method]] of the official recommendation. Values can also be serialized as JSON with the standard [[Serialization]] feature of XQuery:* The parameter {{Code|$optionsmethod}} argument can needs to be used set to control {{Code|json}}, and* the way options presented in this article need to be assigned to the input is converted{{Code|json}} parameter.
|-
| '''Errors'''
|{{Error|parseserialize|#Errors}} the specified input node cannot be parsed serialized as JSON document.<br/>{{Error|options|#Errors}} the specified options are conflicting.
|}
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu