I have a small project implementing X3D JSON loading, currently done via converting JSON to XML. It’s not in the main castle-engine or castle-model-viewer, I created a viewer from castle engine’s template model viewer. The code is here:
In future installments, I fully plan to use the X3DNodes unit, this was just what I could get working in the shortest time, having prior code for converting to XML. Also saving to X3D JSON from X3DNode structures might be possible, but I’m not great at producing X3D JSON. I might refer you to create3000’s x3d-tidy tool, which also produces .x3dj files critical for this project’s success.
It’s under the LGPL, if people want to experiment with it.
Screenshots here:
Note that I have a couple of examples under data/rubik and data/x3dj. You are welcome to file pull requests with examples!
Note that X3D JSON is not a ISO standardized encoding, but it was developed by Web3D Consortium members.
Thanks,
John