W3C home > Mailing lists > Public > public-qt-comments@w3.org > January 2014

[Bug 24436] [XSLT 3.0] Poorly-designed JSON example

From: <bugzilla@jessica.w3.org>
Date: Thu, 30 Jan 2014 20:06:41 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-24436-523-tibS8DBflm@http.www.w3.org/Bugs/Public/>

Florent Georges <fgeorges@gmail.com> changed:

           What    |Removed                     |Added
                 CC|                            |fgeorges@gmail.com

--- Comment #1 from Florent Georges <fgeorges@gmail.com> ---
(In reply to Michael Kay from comment #0)
> The JSON example in 21.2.1 is rather inelegant in that the only array it
> contains (the phone numbers) contains a single entry (a map)

It looks like it is an adaptation of an example I've sent on the mailing list,
which I took from the Wikipedia page for JSON
<http://en.wikipedia.org/wiki/JSON>.  But the value of the array has been
changed from:

    "phone numbers" :  [ 
       { "type": "home", 
         "number": "212 732-1234"
       { "type": "fax", 
         "number": "646 123-4567"


    "phone numbers" :  [ 
       { "home": "212 732-1234", 
         "fax": "646 123-4567"

The first one looks legitimate to me, WRT having an array.  I can try and come
with another example, but this one (with the above modification) looks good to

By the way, the example also uses spaces in the names.  As far as I can see,
this is valid syntax, but I guess it would generate an error if someone tries
to parse it as a Javascript object.  Do we want to remove spaces in names?

You are receiving this mail because:
You are the QA Contact for the bug.
Received on Thursday, 30 January 2014 20:06:43 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:45 UTC