[opensource-dev] LLSD logs (was: O.O Display name code DROP!)

Joshua Bell josh at lindenlab.com
Fri Oct 15 17:28:39 PDT 2010


On Fri, Oct 15, 2010 at 5:12 PM, Ricky <kf6kjg at gmail.com> wrote:

> Ah yes, I'd forgotten that there was more than one form for LLSD...
> I've only worked with the XML-style one thus far!  Since, as you say,
> the format is not in the XML style, then it is likely that they
> hadn't.  Or that they had, but chose this style for being more "human
> friendly" - like you said.
>
> Since, as the linked page describes, the plan is to move this format
> into JSON, maybe this is a good opportunity for a community dev to get
> it fully into JSON format.  ECMAScript 5th edition looks to be
> finalized:
> http://www.ecma-international.org/publications/standards/Ecma-262.htm
>
> Then we could just use some JSON tools to write a converter.   Or we
> write a patch for exporting in XML notation, as that provides some fun
> options, as discussed previously.
>

We have source code up at:

http://hg.secondlife.com/llsd

<http://hg.secondlife.com/llsd>... and most of the supported languages can
read/write Notation, XML, JSON and Binary serializations of LLSD.

Notation serialization is loosely deprecated but has some benefits over JSON
in that all LLSD types are explicitly serialized, whereas when serializing
to JSON the consumer must interpret values in the correct format (e.g.
data['foo'][2]['bar'].asUUID()). That's the intended use of LLSD, but not
everyone follows that intent.

-- Josh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.secondlife.com/pipermail/opensource-dev/attachments/20101015/4e72a1d0/attachment.htm 


More information about the opensource-dev mailing list