Hi,

 

I’m playing with the new XQuery 3.1 functions amongst which the JSON-serilization.

I would expect all three snippets below to result in the same output but all three give a different result.

 

Snippet 1:

=======

declare option output:method 'json';

 

serialize( <a>test</a>

)

 

Snippet 2:

=======

serialize( <a>test</a>

         , map{ 'method' : 'json'}

)

 

Snippet 3:

=======

declare option output:method 'json';

 

serialize( <a>test</a>

         , map{ 'method' : 'json'}

)

 

If I do the same with XML-serilization than all three results are the same.

 

Are my expectations correct in this?

 

- Rob




Dit e-mailbericht is gecontroleerd op virussen met Avast antivirussoftware.
www.avast.com