[Bug 27171] Outputting JSON, serializing sequences

https://www.w3.org/Bugs/Public/show_bug.cgi?id=27171

Jonathan Robie <jonathan.robie@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jonathan.robie@gmail.com

--- Comment #2 from Jonathan Robie <jonathan.robie@gmail.com> ---
(In reply to Christian Gruen from comment #0)
> I know I should have replied earlier to Michael's requests on serializing
> JSON (#26784), but I think that one issue is worth being discussed a bit
> more:
> 
> If sequences with zero items or more than one item are to be output on top
> level, I would recommend not to output them as 'null' or as array:

We have only one way to specify a JSON null, and that's an empty sequence. So I
think serializing as 'null' is appropriate here.

I agree that we should not serialize a sequence of length > 1 as an array. The
WG agreed to that yesterday.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Tuesday, 28 October 2014 18:56:27 UTC