W3C home > Mailing lists > Public > public-linked-json@w3.org > December 2011

Re: Define if JSON-LD is case-sensitive or not (ISSUE-45)

From: Gregg Kellogg <gregg@kellogg-assoc.com>
Date: Sun, 4 Dec 2011 13:22:29 -0500
To: Dave Longley <dlongley@digitalbazaar.com>
CC: "public-linked-json@w3.org" <public-linked-json@w3.org>
Message-ID: <11666101-4A9F-4919-8833-BE83638C669B@greggkellogg.net>
On Dec 4, 2011, at 9:19 AM, Dave Longley wrote:

> On 12/04/2011 09:33 AM, Markus Lanthaler wrote:
>> I've just added ISSUE-45: We do not define if JSON-LD is case-sensitive or
>> not. All they keywords are currently in lowercase but is that a requirement?
>> I would say no and would define JSON-LD as case-insensitive.
> 
> I strongly think we should require JSON-LD keywords to be 
> case-sensitive. JSON is case-sensitive and it will complicate things to 
> accept different case combinations with no significant gains (IMO).

I definitely agree. I access the object via index, and if I needed to do a case-insensitive match, I'd end up having to clone the object to one which had all lower-case keys.

Gregg

> -- 
> Dave Longley
> CTO
> Digital Bazaar, Inc.
> 
> 
Received on Sunday, 4 December 2011 18:23:25 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:25:36 GMT