[x3d-public] JSON Encoding

Cecile Muller newsletter at wildpeaks.fr
Mon Dec 21 16:11:14 PST 2015


Good evening Don,


> 1. In the proposed alternative example (again attached), what would the
full object reference from the top of the scene graph be?

The path in HelloWorldCommentedAlternativeEncoding.json is:
* data.X3D.Scene['-children'][4].Group['-children'][3].Transform['-children'][1].Shape['-appearance'][0].Appearance['-material'][0].Material['@diffuseColor']*

You can run this in Node to test:
https://gist.github.com/cecilemuller/efa310a5f2923ce360ba


> 2.  A code snippet that showed how to test such a reference in node.js
console would be helpful...

Sure, already posted one (this one however additionally needs the json5
module):
https://gist.github.com/cecilemuller/14e168f7864ac66c61d3


> 3. Wondering what is the formal status of JSON5?  Am not finding that it
is specified anywhere.

Its reference is at http://json5.org and its js module has 1.7 million
downloads a month.


See you,
Cecile
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20151222/2c0b7e0f/attachment.html>


More information about the x3d-public mailing list