Re: [ogpx] LLSD JSON compatibility

Infinity Linden <infinity@lindenlab.com> Thu, 25 June 2009 21:35 UTC

Return-Path: <infinity@lindenlab.com>
X-Original-To: ogpx@core3.amsl.com
Delivered-To: ogpx@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 1A4863A6941 for <ogpx@core3.amsl.com>; Thu, 25 Jun 2009 14:35:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.701
X-Spam-Level:
X-Spam-Status: No, score=-1.701 tagged_above=-999 required=5 tests=[AWL=0.276, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dXuXx5mVeFIR for <ogpx@core3.amsl.com>; Thu, 25 Jun 2009 14:35:08 -0700 (PDT)
Received: from mail-yx0-f171.google.com (mail-yx0-f171.google.com [209.85.210.171]) by core3.amsl.com (Postfix) with ESMTP id 851F13A6811 for <ogpx@ietf.org>; Thu, 25 Jun 2009 14:35:08 -0700 (PDT)
Received: by yxe1 with SMTP id 1so2867338yxe.29 for <ogpx@ietf.org>; Thu, 25 Jun 2009 14:33:07 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.100.255.7 with SMTP id c7mr3889731ani.137.1245965153984; Thu, 25 Jun 2009 14:25:53 -0700 (PDT)
In-Reply-To: <62BFE5680C037E4DA0B0A08946C0933D91239F09@rrsmsx506.amr.corp.intel.com>
References: <4A3BE302.5070405@isode.com> <OF68EA1CF7.7097A5B8-ON852575DF.005D4F02-852575DF.005DFB80@us.ibm.com> <4A43ABDF.1010800@lindenlab.com> <3a880e2c0906251113t380353caw17dba4d5537abd90@mail.gmail.com> <62BFE5680C037E4DA0B0A08946C0933D91239F09@rrsmsx506.amr.corp.intel.com>
Date: Thu, 25 Jun 2009 14:25:53 -0700
Message-ID: <3a880e2c0906251425y2c0b90f9w304539b735b55735@mail.gmail.com>
From: Infinity Linden <infinity@lindenlab.com>
To: "Hurliman, John" <john.hurliman@intel.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: "ogpx@ietf.org" <ogpx@ietf.org>
Subject: Re: [ogpx] LLSD JSON compatibility
X-BeenThere: ogpx@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Virtual Worlds and the Open Grid Protocol <ogpx.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/ogpx>, <mailto:ogpx-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/ogpx>
List-Post: <mailto:ogpx@ietf.org>
List-Help: <mailto:ogpx-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ogpx>, <mailto:ogpx-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 25 Jun 2009 21:35:10 -0000

it is compatible with the 'value' non-terminal instead of the
'JSON-text' non-terminal defined in RFC4627. this is because we wanted
to allow a JSON serialized LLSD message to encode non-collections.
(RFC4627 REQUIRES valid JSON-text messages to begin with a '[' or
'{'.)

as described in the draft, valid JSON serialized LLSD messages are a
subset of valid JSON messages since LLSD REQUIRES UTF8. ergo, it is
possible to have a message that is valid under RFC4627 but an invalid
JSON serialized LLSD message.

however, given JavaScript parsing rules, a client which respects the
UTF-8 requirement of LLSD will be able to parse messages described by
the 'value' non-terminal in RFC4627 with the code given in the RFC.

in other words, we allow servers to give us JSON messages that are not
strictly compliant with RFC4627, and like virtually every web browser
in common use, we do not require JSON messages to be collections.



On Thu, Jun 25, 2009 at 12:07 PM, Hurliman, John<john.hurliman@intel.com> wrote:
> In what ways is the JSON that is created when serializing LLSD messages not compatible with RFC 4627?
>
> John
> _______________________________________________
> ogpx mailing list
> ogpx@ietf.org
> https://www.ietf.org/mailman/listinfo/ogpx
>