[x3d-public] announce: updated encoding, X3D to JSON Stylesheet Converter: string arrays, whitespace, UTF-8, Script #source

Joe D Williams joedwil at earthlink.net
Mon Nov 23 17:06:54 PST 2015


> JavaScript into JSON is out of their minds anyway, so they should be 
> responsible for any horrid encoding they have to do.
>
> sounds fair  8)

are we talking about how to provide for an X3D Script node with script 
included that just happens to be in an otherwise ok X3D file? plz tell 
me i do not need to go out of the mind in order to do this.
Thanks,
Joe




----- Original Message ----- 
From: "Don Brutzman" <brutzman at nps.edu>
To: "John Carlson" <yottzumm at gmail.com>
Cc: "X3D Graphics public mailing list" <x3d-public at web3d.org>
Sent: Monday, November 23, 2015 11:24 AM
Subject: Re: [x3d-public] announce: updated encoding, X3D to JSON 
Stylesheet Converter: string arrays, whitespace, UTF-8, Script #source


> On 11/21/2015 2:16 AM, John Carlson wrote:
>> Any JavaScript programmer who is putting JavaScript into JSON is 
>> out of their minds anyway, so they should be responsible for any 
>> horrid encoding they have to do.
>
> sounds fair  8)
>
>>  If programs are doing it, it’s a different story and we should 
>> have a single workable encoding for it.
>
> yes.  hence X3D JSON Encoding 19776-5 and round-trippable 
> requirement, i.e. "why we are here" working on this.
>
>> What is easiest for a program to parse to remove nasties and is 
>> still valid JSON?
>
> suggest truly easiest approach is "don't do that," i.e. not loading 
> #sourceText and just ignoring that field.
>
> that might be a good security option anyway for an X3D JSON loader.
>
>>  I do think we want to maintain valid JSON so multiline strings 
>> will not work TMK.
>
> based on list dialog, three options currently provided by the 
> stylesheet. all are equivalentally captured as a string array.
>
> http://www.web3d.org/x3d/stylesheets/X3dToJson.html#Options
>
> all the best, Don
> -- 
> Don Brutzman  Naval Postgraduate School, Code USW/Br 
> brutzman at nps.edu
> Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA 
> +1.831.656.2149
> X3D graphics, virtual worlds, navy robotics 
> http://faculty.nps.edu/brutzman
>
> _______________________________________________
> x3d-public mailing list
> x3d-public at web3d.org
> http://web3d.org/mailman/listinfo/x3d-public_web3d.org
> 




More information about the x3d-public mailing list