[Bug 27171] Outputting JSON, serializing sequences

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

Christian Gruen <christian.gruen@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Christian Gruen <christian.gruen@gmail.com> ---
> 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.

After some thoughts, I also came to the conclusion that serializing an empty
sequence as 'null' also makes sense on top level (otherwise, serialization and
parsing would not be bidirectional anymore).

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

Thanks for pointing this out; I'm closing this issue.

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

Received on Tuesday, 28 October 2014 19:03:00 UTC