Feature #4991
closedDo indentation of JSON with xml-to-json($json-xml, map { 'indent' : true() })
100%
Description
The function xml-to-json
takes an optional second argument with a map for options, the one being defined is a boolean value for the key indent
.
While the Java and .NET product honour that option and do indent any produced JSON, Saxon-JS 2 doesn't do any indentation, see also https://saxonica.plan.io/boards/5/topics/8052?r=8053#message-8053.
It would be nice if the implementation could be enhanced to support indentation as otherwise reading the result of xml-to-json
that Saxon-JS 2 produces is very hard as you are faced with one long line of JSON data.
Please register to edit this issue
Also available in: Atom PDF Tracking page