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

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

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"
       }
    ]

to:

    "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
me.

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