Re: JSON Instances

I should note a slight difference with what we had earlier agreed that  
dawned on me while firming it up, that got in the way of round-tripping.

In the transformation of
 {"size": 50} and {"size": "50"}
you can't tell the difference if you transform both to
 <json><size>50</size></json>

So I've use the type attribute to (arbitrarily) mark the numeric case:

 <json><size type="number">50</size><json>

Similarly with the boolean and null cases.

Steven


On Fri, 27 May 2011 16:51:50 +0200, Steven Pemberton  
<Steven.Pemberton@cwi.nl> wrote:

> I have rewritten the JSON section, according to my action item.
>
> http://www.w3.org/MarkUp/Forms/wiki/Json
>
> Comments gladly received.
>
> Steven

Received on Monday, 30 May 2011 12:41:07 UTC