[x3d-public] Is https://www.web3d.org/specifications/java/examples/HelloWorldProgramOutput.json valid?

John Carlson yottzumm at gmail.com
Fri Jun 30 20:24:16 PDT 2023


Don, if

https://www.web3d.org/specifications/java/examples/HelloWorldProgramOutput.json

is supposed to be valid X3D JSON, please inform me.  Thanks!

To ensure that -value is not a field of Shape in JSON, I have added the
following exception in x3djsonld.py.


        if parent in ("Text", "Shape") and key in ("value"):  # don't have
value yet, sorry
            # do value later
            raise "-value not a supported field of Text or Shape, try
-metadata?"
            continue

I can revert the code if necessary.  I'm trying to follow the standard as I
see it.

If -value under Shape is correct, then X3DJSAIL needs to support addValue
(as I have it in Java) or setValue.  That's my opinion.

John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20230630/32488da0/attachment.html>


More information about the x3d-public mailing list