<div dir="ltr"><div dir="ltr">Report on JSON file generated by X3dToJson.xslt, download from 

<a href="https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/TrebuchetIndex.html" target="_blank">https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/TrebuchetIndex.html</a><div><br></div><div>Note that the JSON linked file (on the above linked page) is essentially identical to the  February 9th version, except for the date.</div><div><br></div><div>X3dToJson.xslt needs to be updated to not produce comments inside -children fields at the same level as @USE field.  There should be NO -children fields at the same level as @USE in X3DJSON</div><div><br></div><div>I believe this is the JSON in question.  Note @USE and -children at the same level.</div><div>==</div><div> { "Shape":<br>                                    {<br>                                      "@USE":"Torus",<br>                                      "-children":[<br>                                        {<br>                                          "#comment":"Knot"<br>                                        }<br>                                      ]<br>                                    }<br></div><div>==</div><div>This appears to be the problematic XML, but double check me please (there are two Knot comments).</div><div>            <Shape USE='Torus'><br>              <!-- Knot --><br>            </Shape></div><div><br></div><div>==</div><div><br></div><div>Please suggest an alternate JSON encoding of this XML</div><div><br>Updated JSON schema (with Bounded Object updates) available at normal locations (see messages included).</div><div><br></div><div>Thanks!</div><div><br></div><div>John<br><div><br></div><div>$ node x3dvalidate.js Trebuchet.json<br>Can only validate version 4.0 presently. Switching version to 4.0.<br>Loading schema<br>Parsing schema<br>Adding schema<br>Schema 4.0 added<br>Schema 4.0 compiled<br>================================================================================<br>File: Trebuchet.json<br>Error reading Trebuchet.json<br> keyword: required<br> instancePath: /X3D/Scene/-children/8/Transform<br> message: must have required property @USE<br> params: {"missingProperty":"@USE"}<br> file: Trebuchet.json<br> version: 3.0<br><br> keyword: required<br> instancePath: /X3D/Scene/-children/8/Transform/-children/8/Transform<br> message: must have required property @USE<br> params: {"missingProperty":"@USE"}<br> file: Trebuchet.json<br> version: 3.0<br><br> keyword: required<br> instancePath: /X3D/Scene/-children/8/Transform/-children/8/Transform/-children/4/Transform<br> message: must have required property @USE<br> params: {"missingProperty":"@USE"}<br> file: Trebuchet.json<br> version: 3.0<br><br> keyword: required<br> instancePath: /X3D/Scene/-children/8/Transform/-children/8/Transform/-children/4/Transform/-children/0/Transform<br> message: must have required property @USE<br> params: {"missingProperty":"@USE"}<br> file: Trebuchet.json<br> version: 3.0<br><br> keyword: additionalProperties<br> instancePath: /X3D/Scene/-children/8/Transform/-children/8/Transform/-children/4/Transform/-children/0/Transform/-child<br>ren/0/Shape<br> message: must NOT have additional properties<br> params: {"additionalProperty":"-children"}<br> file: Trebuchet.json<br> version: 3.0<br><br> keyword: additionalProperties<br> instancePath: /X3D/Scene/-children/8/Transform/-children/8/Transform/-children/4/Transform/-children/0/Transform/-child<br>ren/0/Shape<br> message: must NOT have additional properties<br> params: {"additionalProperty":"@USE"}<br> file: Trebuchet.json<br> version: 3.0<br><br> keyword: oneOf<br> instancePath: /X3D/Scene/-children/8/Transform/-children/8/Transform/-children/4/Transform/-children/0/Transform/-child<br>ren/0/Shape<br> message: must match exactly one schema in "oneOf"<br> params: {"passingSchemas":null}<br> file: Trebuchet.json<br> version: 3.0<br><br> keyword: oneOf<br> instancePath: /X3D/Scene/-children/8/Transform/-children/8/Transform/-children/4/Transform/-children/0/Transform<br> message: must match exactly one schema in "oneOf"<br> params: {"passingSchemas":null}<br> file: Trebuchet.json<br> version: 3.0<br><br> keyword: oneOf<br> instancePath: /X3D/Scene/-children/8/Transform/-children/8/Transform/-children/4/Transform<br> message: must match exactly one schema in "oneOf"<br> params: {"passingSchemas":null}<br> file: Trebuchet.json<br> version: 3.0<br><br> keyword: oneOf<br> instancePath: /X3D/Scene/-children/8/Transform/-children/8/Transform<br> message: must match exactly one schema in "oneOf"<br> params: {"passingSchemas":null}<br> file: Trebuchet.json<br> version: 3.0<br><br> keyword: oneOf<br> instancePath: /X3D/Scene/-children/8/Transform<br> message: must match exactly one schema in "oneOf"<br> params: {"passingSchemas":null}<br> file: Trebuchet.json<br> version: 3.0<br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 7, 2022 at 11:12 PM John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">New fetchable X3D V4.0 JSON Schema fetchable from:<div><br></div><div><a href="https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/schema/x3d-4.0-JSONSchema.json" target="_blank">https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/schema/x3d-4.0-JSONSchema.json</a><br></div><div><br></div><div>Includes changes to title...word ordering and date time (now being the time generated.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 27, 2022 at 2:55 PM John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">You may now grab new versions of X3D JSON schema:<div><br></div><div><a href="https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/schema/x3d-4.0-JSONSchema.json" target="_blank">X3DJSONLD/x3d-4.0-JSONSchema.json at master · coderextreme/X3DJSONLD (github.com)</a><br></div><div><br></div><div>(Includes Navigation.type update to JSON string instead of JSON array)</div><div><br></div><div>Thanks for your support!<br><br></div><div>John</div></div>
</blockquote></div>
</blockquote></div>
</div>