Hi Amanda,
During the implementation of fn:xml-to-json, the 'indent' option got swept under the table. It has just been reintroduced, and it is here to say.
Thanks, Christian
[1] http://files.basex.org/releases/latest/
On Sat, Jun 20, 2015 at 2:36 AM, Amanda Galtman Amanda.Galtman@mathworks.com wrote:
Hi,
In the json:serialize() function, the ‘indent’ option does not seem to be accepted. Is it an outdated option?
For example, the following returns “Unknown option ‘indent’.” in BaseX 8.2.1.
json:serialize(
json:parse('[{"a":"b"}]'),
map {'indent':'no'}
)
The ‘indent’ option doesn’t work for json:parse() either, though the doc does not suggest it should.
Thanks,
Amanda