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
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
Great, thanks!
Amanda
-----Original Message----- From: Christian Grün [mailto:christian.gruen@gmail.com] Sent: Monday, June 22, 2015 3:31 AM To: Amanda Galtman Cc: basex-talk@mailman.uni-konstanz.de Subject: Re: [basex-talk] 'indent' option for json:serialize()
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
…and thank *you* for the regular edits in our Wiki!
On Mon, Jun 22, 2015 at 1:44 PM, Amanda Galtman Amanda.Galtman@mathworks.com wrote:
Great, thanks!
Amanda
-----Original Message----- From: Christian Grün [mailto:christian.gruen@gmail.com] Sent: Monday, June 22, 2015 3:31 AM To: Amanda Galtman Cc: basex-talk@mailman.uni-konstanz.de Subject: Re: [basex-talk] 'indent' option for json:serialize()
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
basex-talk@mailman.uni-konstanz.de