On Fri, Oct 15, 2010 at 5:12 PM, Ricky <kf6...@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
_______________________________________________ Policies and (un)subscribe information available here: http://wiki.secondlife.com/wiki/OpenSource-Dev Please read the policies before posting to keep unmoderated posting privileges