W3C home > Mailing lists > Public > public-forms@w3.org > May 2011

Re: JSON Instances

From: Steven Pemberton <Steven.Pemberton@cwi.nl>
Date: Mon, 30 May 2011 14:40:31 +0200
To: "Forms WG" <public-forms@w3.org>, "Steven Pemberton" <Steven.Pemberton@cwi.nl>
Message-ID: <op.vwan5tgqsmjzpq@steven-750g>
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

This archive was generated by hypermail 2.3.1 : Tuesday, 1 October 2013 22:06:55 UTC