Re: [xml-dev] JSON - The Fat Free Alternative - Redux

From
Michael Kay <>
To
Dimitre Novatchev <>
Date
2014-10-03T09:51:13Z
ID
<>
Thread
Re: [xml-dev] JSON - The Fat Free Alternative - Redux
> 
> 
> So, what about using XSLT 3.0 native capabilities for processing JSON:
> 
>     http://www.w3.org/TR/2014/WD-xslt-30-20141002/#json
> 
> BTW, Congratulations for the XSLT WG for rolling out a 2nd Last Call
> draft today!
> 

One of the interesting possibilities is to implement json-to-xml() by creating an optimized tree structure as the representation of the resulting XDM instance. I can imagine this being quite efficient compared with a general-purpose XDM implementation, for example because the @key attribute values are known to be unique. (The current Saxon implementation, however, creates a general-purpose tree.)

Michael Kay
Saxonica