<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:1367100451;
        mso-list-template-ids:-1;}
@list l0:level1
        {mso-level-tab-stop:.5in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level2
        {mso-level-tab-stop:1.0in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level3
        {mso-level-tab-stop:1.5in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level4
        {mso-level-tab-stop:2.0in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level5
        {mso-level-tab-stop:2.5in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level6
        {mso-level-tab-stop:3.0in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level7
        {mso-level-tab-stop:3.5in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level8
        {mso-level-tab-stop:4.0in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level9
        {mso-level-tab-stop:4.5in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1
        {mso-list-id:1653946330;
        mso-list-template-ids:-1;}
@list l1:level1
        {mso-level-tab-stop:.5in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1:level2
        {mso-level-tab-stop:1.0in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1:level3
        {mso-level-tab-stop:1.5in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1:level4
        {mso-level-tab-stop:2.0in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1:level5
        {mso-level-tab-stop:2.5in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1:level6
        {mso-level-tab-stop:3.0in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1:level7
        {mso-level-tab-stop:3.5in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1:level8
        {mso-level-tab-stop:4.0in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1:level9
        {mso-level-tab-stop:4.5in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l2
        {mso-list-id:1804274841;
        mso-list-template-ids:-1;}
@list l2:level1
        {mso-level-tab-stop:.5in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l2:level2
        {mso-level-tab-stop:1.0in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l2:level3
        {mso-level-tab-stop:1.5in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l2:level4
        {mso-level-tab-stop:2.0in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l2:level5
        {mso-level-tab-stop:2.5in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l2:level6
        {mso-level-tab-stop:3.0in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l2:level7
        {mso-level-tab-stop:3.5in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l2:level8
        {mso-level-tab-stop:4.0in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l2:level9
        {mso-level-tab-stop:4.5in;
        mso-level-number-position:left;
        text-indent:-.25in;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">John, thanks for repeated consideration, the plan keeps improving.  It will get better and better as we progress.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Am happy for people to do whatever they think best.  Team sport!  As you know, Dick and I are spending a lot of time on key editorial Mantis issues for X3D Architecture.  We also have Web3D 2021 Conference preparations beginning.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">As discussion and minutes tried to indicate, I think we should try to get X3D4 JSON 2020-12 Schema working and testing via build scripts first.  That will give us confidence that the schema works OK, and avoid later rework.  One of the
 Java implementations will be best for build script unit testing.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hopefully XML Spy by Altova will give us a second check on this too.  Multiple implementations are important to confirm interoperability.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Then am willing to integrate JSON loading in X3DJSAIL.  Simple is good, we want it to be easily maintainable over time and hopefully not dependent on external libraries which might unexpectedly break some day.</p>
<p class="MsoNormal"><br>
Step by step, onward we go.  Having X3D models and data-driven visualizations that can independently get converted and work in XML, HTML/DOM, ClassicVRML, JSON, JavaScript, Java, Python, Turtle, C, C++ and C# will be useful.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">all the best, Don<br>
<span style="font-size:10.0pt;font-family:"Courier New",serif">-- <br>
Don Brutzman  Naval Postgraduate School, Code USW/Br       brutzman@nps.edu<br>
Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149<br>
X3D graphics, virtual worlds, navy robotics <a href="http://faculty.nps.edu/brutzman">
http://faculty.nps.edu/brutzman</a></span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="border:none;padding:0in"><b>From: </b><a href="mailto:yottzumm@gmail.com">John Carlson</a><br>
<b>Sent: </b>Monday, October 11, 2021 6:27 PM<br>
<b>To: </b><a href="mailto:brutzman@nps.edu">Brutzman, Donald (Don) (CIV)</a>; <a href="mailto:x3d-public@web3d.org">
X3D Graphics public mailing list</a>; <a href="mailto:x3d-public@web3d.org">X3D Graphics public mailing list</a><br>
<b>Subject: </b>Re: renewed development of X3D JSON support</p>
</div>
<div>
<p>My first task will be downloading the 2020-12 JSON schema, and reviewing it against draft07 JSON schema, to see differences.  Then, I will pursue X3D JSON 4.0 schema generation using python (again).   We had decided before to use draft07, because no tools
 were available to pursue 2020-12 or 2019-09 JSON schema in Java.  Now there is one tool to do validation (see below). One reason I liked the draft07 approach is that the Python JSON validator I use, fastjsonschema, does not support 2012-02, and I already have
 draft07 working with multiple versions of X3D JSON schema in the same program (note that JSON schema has been converted to python):</p>
<p>```</p>
<p>import sys<br>
import json</p>
<p># the below packages are available in X3DJSONLD, they are X3D JSON schemas converted to python:</p>
<p>import schemaparser30<br>
import schemaparser31<br>
import schemaparser32<br>
import schemaparser33<br>
import schemaparser40<br>
<br>
jsobj = json.loads(sys.stdin.read())<br>
version = jsobj["X3D"]["@version"].replace(".", "")<br>
try:<br>
    if version in [ "30", "31", "32", "33", "40" ]:<br>
        eval("schemaparser"+version+".validate(jsobj)")<br>
except:<br>
        print('Invalid')</p>
<p>```</p>
<p>At sometime, I think independent X3D JSON schema generation would be appropriate.  I did state that converting X3D XML Schema to X3D JSON schema with XMLSpy was probably infeasible due to field and comment prefixes in X3D JSON--You will have to provide hooks
 in XMLSpy to achieve this, or ask for more options to XMLSpy (which is possible) or XML schema.  I suggest running a test to see if the X3D JSON Schema produced will validate the 4000 examples generated by X3dToJson.xslt. The Web3D Consortium may send my sample
 X3D JSON schemas to Altova to meet requirements of X3D JSON Schema, with the requirement that their schema generation product will meet the Web3D Consortium's IP requirements, that is, we want everyone to be able to use the schema used, whether they have XMLSpy
 or not.</p>
<p>What I'm kind of confused about is whether we'll provide JSON validation with X3D*SAIL or /JSON schema/+/validation tools/ or both. I think having separate implementations would be a good plan. I am fairly confident that Don committed to supporting X3D JSON
 import into X3DJSAIL, but not using X3DJSONLD.java.  In particular, he suggested translating JSON to DOM document was not the preferred approach, but he was open to doing X3D JSON import with Saxon. I didn't ask him how he was going to get Saxon output into
 X3DJSAIL--would you like to comment, Don?  I know I haven't fully elucidated my thought processes around X3DJSONLD.java.   Why did I choose to convert to DOM?  Probably because I didn't see myself writing or generating X3D*SAIL for ECMAScript, I already tried
 to write X3DPSAIL and es6x3d, I merely don't seem to have the brain power or time.  I need to support my old tools, or transfer to one that has wider demand.   There are other issues like competing with X3DOM and X_ITE--I chose to play nice.  I didn't want
 to support 2 different SAI solutions, when X3DOM and X_ITE were already far down that path.</p>
<p>Here's the code in X3D4 JSON schema to support multiple versions:</p>
<p>        "@version": {<br>
          "pattern": "^(\\s|\\S)*$",<br>
          "enum": [<br>
            "3.0",<br>
            "3.1",<br>
            "3.2",<br>
            "3.3",<br>
            "4.0"<br>
          ],<br>
          "default": "4.0",<br>
          "$comment": "SFString inputOutput",<br>
          "type": "string"<br>
        }<br>
      },</p>
<p>So I am fairly confident that the new 4.0 schema will be able to support older versions.  I would ask about XvlShell though. I think we may have some old files that have that node.</p>
<p>I also note that one can change the @version property (inputOutput).  This seems counter-intuitive.</p>
<p>John</p>
<div>
<p class="MsoNormal">On 10/11/21 6:48 PM, Brutzman, Donald (Don) (CIV) wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">Attendees: John Carlson, Don Brutzman<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:.25in;text-indent:-.25in;mso-list:l1 level1 lfo1">
<![if !supportLists]><span style="mso-list:Ignore">1.<span style="font:7.0pt "Times New Roman"">      
</span></span><![endif]><i>JSON Schema Status</i><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">- <strong><span style="font-family:"Calibri",sans-serif">JSON Schema</span></strong> is a vocabulary that allows you to
<strong><span style="font-family:"Calibri",sans-serif">annotate</span></strong> and
<strong><span style="font-family:"Calibri",sans-serif">validate</span></strong> JSON documents.<o:p></o:p></p>
<p class="MsoNormal">- <a href="https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fjson-schema.org%2F&data=04%7C01%7Cbrutzman%40nps.edu%7Caedd419d338d4e2c048608d98d1f6394%7C6d936231a51740ea9199f7578963378e%7C0%7C0%7C637695988671818715%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=X%2B0zVs8plUf59PHRJgvsinaMazvqCkWZqf1k0V0qIgQ%3D&reserved=0">
https://json-schema.org</a><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Looks like they have an updated numbering scheme. Latest published IETF Draft is 2020-12.  IETF requires that each draft gets updated each 6 months, but they have long missed meeting such goals.  We have to settle on what has meaningful
 tool support. <o:p></o:p></p>
<ol style="margin-top:0in" start="1" type="1">
<li class="MsoListParagraph" style="margin-left:0in;mso-list:l2 level1 lfo2"><a href="https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fjson-schema.org%2Fspecification-links.html%23understanding-draft-names-and-numbers&data=04%7C01%7Cbrutzman%40nps.edu%7Caedd419d338d4e2c048608d98d1f6394%7C6d936231a51740ea9199f7578963378e%7C0%7C0%7C637695988671828665%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=2Rb8p4dYpM2bNHbvpa05fhnSoBEe9t0zK11GtjLcyGc%3D&reserved=0">https://json-schema.org/specification-links.html#understanding-draft-names-and-numbers</a><o:p></o:p></li></ol>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Many implementations are listed at<o:p></o:p></p>
<ol style="margin-top:0in" start="2" type="1">
<li class="MsoListParagraph" style="margin-left:0in;mso-list:l2 level1 lfo2"><a href="https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fjson-schema.org%2Fiplementations.html&data=04%7C01%7Cbrutzman%40nps.edu%7Caedd419d338d4e2c048608d98d1f6394%7C6d936231a51740ea9199f7578963378e%7C0%7C0%7C637695988671828665%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=SAIqCCz5aNNa040ur8b9ON5yHqdyKJX4TEKoGtaqH1Y%3D&reserved=0">https://json-schema.org/iplementations.html</a><o:p></o:p></li></ol>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Looking at versions of Java implementations:<o:p></o:p></p>
<ol style="margin-top:0in" start="3" type="1">
<li class="MsoListParagraph" style="margin-left:0in;mso-list:l2 level1 lfo2">We previously used Everit but that looks to be stopped 2 years ago<o:p></o:p></li><li class="MsoListParagraph" style="margin-left:0in;mso-list:l2 level1 lfo2">Several implements support version 2019-09, only one reports 2020-12 support<o:p></o:p></li><li class="MsoListParagraph" style="margin-left:0in;mso-list:l2 level1 lfo2">Snow
<a href="https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fssilverman%2Fsnowy-json&data=04%7C01%7Cbrutzman%40nps.edu%7Caedd419d338d4e2c048608d98d1f6394%7C6d936231a51740ea9199f7578963378e%7C0%7C0%7C637695988671838614%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=0YeRsyL6RLVYw57vKsoxiVpPIfpqABDMHGymkdNSZBk%3D&reserved=0">
https://github.com/ssilverman/snowy-json</a><o:p></o:p></li><li class="MsoListParagraph" style="margin-left:0in;mso-list:l2 level1 lfo2">Vert.x json schema
<a href="https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feclipse-vertx%2Fvertx-json-schema&data=04%7C01%7Cbrutzman%40nps.edu%7Caedd419d338d4e2c048608d98d1f6394%7C6d936231a51740ea9199f7578963378e%7C0%7C0%7C637695988671838614%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=XhH1qz5bTHx%2BLjLEQsytyMwuSP7BB57txtYuwaKrLPU%3D&reserved=0">
https://github.com/eclipse-vertx/vertx-json-schema</a> (looks recent)<o:p></o:p></li><li class="MsoListParagraph" style="margin-left:0in;mso-list:l2 level1 lfo2">Jsonschmafriend
<a href="https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjimblackler%2Fjsonschemafriend&data=04%7C01%7Cbrutzman%40nps.edu%7Caedd419d338d4e2c048608d98d1f6394%7C6d936231a51740ea9199f7578963378e%7C0%7C0%7C637695988671848582%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=fPo9PEjHFaOWcLmTeAVY6NMYoHH6G%2BgjqMK6abMk7HI%3D&reserved=0">
https://github.com/jimblackler/jsonschemafriend</a> (looks recent, supports 2020-12)<o:p></o:p></li><li class="MsoListParagraph" style="margin-left:0in;mso-list:l2 level1 lfo2">Gson
<a href="https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FGson&data=04%7C01%7Cbrutzman%40nps.edu%7Caedd419d338d4e2c048608d98d1f6394%7C6d936231a51740ea9199f7578963378e%7C0%7C0%7C637695988671858536%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=%2BKSOcEAmXRf3cYf%2BXZMdtqS7swIMIdq0ms6xeISUcc4%3D&reserved=0">
https://en.wikipedia.org/wiki/Gson</a><o:p></o:p></li></ol>
<p class="MsoListParagraph"> </p>
<p class="MsoListParagraph" style="margin-left:0in">Very interesting test page, can feed it a JSON schema and JSON file for validation:</p>
<ol style="margin-top:0in" start="9" type="1">
<li class="MsoListParagraph" style="margin-left:0in;mso-list:l2 level1 lfo2"><a href="https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftryjsonschematypes.appspot.com%2F&data=04%7C01%7Cbrutzman%40nps.edu%7Caedd419d338d4e2c048608d98d1f6394%7C6d936231a51740ea9199f7578963378e%7C0%7C0%7C637695988671858536%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=cCbggwjsCJyXuUmBWenZUy8PaUNuCdW9f8IEG1YL7J8%3D&reserved=0">https://tryjsonschematypes.appspot.com</a><o:p></o:p></li></ol>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Interestingly the JSON Schema Store indicates 419 schemas are available, of various versions reaching back to draft-04..<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Gson (aka Google Gson) is an <a href="https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FOpen-source_software&data=04%7C01%7Cbrutzman%40nps.edu%7Caedd419d338d4e2c048608d98d1f6394%7C6d936231a51740ea9199f7578963378e%7C0%7C0%7C637695988671868494%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=BkvDe034I2hRHro8F7YiGBAbaD5BbKk4eQR3Ry1NM4o%3D&reserved=0" title="Open-source software">
<span style="color:windowtext;text-decoration:none">open-source</span></a> <a href="https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FJava_(programming_language)&data=04%7C01%7Cbrutzman%40nps.edu%7Caedd419d338d4e2c048608d98d1f6394%7C6d936231a51740ea9199f7578963378e%7C0%7C0%7C637695988671868494%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=XiwU7X%2ByUnVu5rIwel24TSC4gsQ8dW6W1qGq310UuOM%3D&reserved=0" title="Java (programming language)">
<span style="color:windowtext;text-decoration:none">Java</span></a> library to <a href="https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FSerialize&data=04%7C01%7Cbrutzman%40nps.edu%7Caedd419d338d4e2c048608d98d1f6394%7C6d936231a51740ea9199f7578963378e%7C0%7C0%7C637695988671878448%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=VBxxVaDWbsbwhtLFie5HBTPt8ZoUpK0eHgxPS4JtMrU%3D&reserved=0" title="Serialize">
<span style="color:windowtext;text-decoration:none">serialize</span></a> and deserialize Java objects to (and from)
<a href="https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FJSON&data=04%7C01%7Cbrutzman%40nps.edu%7Caedd419d338d4e2c048608d98d1f6394%7C6d936231a51740ea9199f7578963378e%7C0%7C0%7C637695988671888405%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=%2FJfjPBzxFPkh6a910edBMNhuAWazqhzSK4mSE7bxURA%3D&reserved=0" title="JSON">
<span style="color:windowtext;text-decoration:none">JSON</span></a>.  Conceivably it might be integrated with X3DJSAIL objects for X3D nodes and statements.  Supports many versions.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><b>Conclusion #1: given multiple tool support, we will pursue JSON Schema 2020-12 for X3D JSON, and further test across multiple programming languages.</b><o:p></o:p></p>
<p class="MsoNormal"><b> </b><o:p></o:p></p>
<p class="MsoNormal">Reaction: thank goodness we waited a couple of years rather than dig a hole with prior versions of tools that are now apparently defunct.  Latest version of JSON schema looks pretty stable and mature now, though we are certainly waiting
 for a stable standard (many years in development, still not done).  Good enough to give it a shot again.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">We are pretty adept at converting X3DUOM into other things.  Once we have a good pattern for X3D JSON Schema matching 2020-12, we can easily (1 week’s effort) autogenerate it.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">NPS will soon get an updated version of XML Spy.  They appear to support 2020-12. Interesting they have a new feature, apparently matching what we want to do.  Worth checking:<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<ol style="margin-top:0in" start="1" type="1">
<li class="MsoListParagraph" style="margin-left:0in;mso-list:l0 level1 lfo3">Convert XML Schema to/from JSON Schema<o:p></o:p></li><li class="MsoListParagraph" style="margin-left:0in;mso-list:l0 level1 lfo3"><a href="https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.altova.com%2Fmanual%2FXMLSpy%2Fspyenterprise%2Fxsjson_schview_version.html&data=04%7C01%7Cbrutzman%40nps.edu%7Caedd419d338d4e2c048608d98d1f6394%7C6d936231a51740ea9199f7578963378e%7C0%7C0%7C637695988671888405%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=A4y1YxmOKuXBVQJcoLrk7HQkNxVVWEz7J9RQz3WZROo%3D&reserved=0">https://www.altova.com/manual/XMLSpy/spyenterprise/xsjson_schview_version.html</a><o:p></o:p></li><li class="MsoListParagraph" style="margin-left:0in;mso-list:l0 level1 lfo3"><a href="https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.altova.com%2Fmanual%2FXMLSpy%2Fspyenterprise%2Furefconvert_xmlschematojsonschema.html&data=04%7C01%7Cbrutzman%40nps.edu%7Caedd419d338d4e2c048608d98d1f6394%7C6d936231a51740ea9199f7578963378e%7C0%7C0%7C637695988671898362%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=yge2dkVh9zM%2BotccSeXF%2FM3pFgcWKOiw%2BuzDT%2F4i1ls%3D&reserved=0">https://www.altova.com/manual/XMLSpy/spyenterprise/urefconvert_xmlschematojsonschema.html</a><o:p></o:p></li></ol>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">We will look at this in the next meeting.  <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">---<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:.25in;text-indent:-.25in;mso-list:l1 level1 lfo1">
<![if !supportLists]><span style="mso-list:Ignore">2.<span style="font:7.0pt "Times New Roman"">      
</span></span><![endif]><i>John’s implementations</i><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Existing X3D JSON Schema drafts by John are found at<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">- <a href="https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcoderextreme%2FX3DJSONLD%2Ftree%2Fmaster%2Fsrc%2Fmain%2Fschema&data=04%7C01%7Cbrutzman%40nps.edu%7Caedd419d338d4e2c048608d98d1f6394%7C6d936231a51740ea9199f7578963378e%7C0%7C0%7C637695988671898362%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=JgRO0Yg0ZMeXrqAwczhRiPdSmabuCXKbUR0cvIZoH4s%3D&reserved=0">
https://github.com/coderextreme/X3DJSONLD/tree/master/src/main/schema</a><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">John’s current autogenerated X3D JSON schema is draft-07, he has prior work that is 2019-09.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Looking at versions of JavaScript implementations:<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<ol style="margin-top:0in" start="10" type="1">
<li class="MsoListParagraph" style="margin-left:0in;mso-list:l2 level1 lfo2">Ajv appears to support latest 2020-12 and 2019-09<o:p></o:p></li><li class="MsoListParagraph" style="margin-left:0in;mso-list:l2 level1 lfo2">John will upgrade his use of this library to latest<o:p></o:p></li></ol>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Suggestion: let’s work on a X3D4 JSON Schema that also validates X3D versions 3.0-3.3.  (This might be the case already.)<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><b>Plan: we will work on updating JSON Schema, then validating examples first with JavaScript and Java.</b><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">---<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:.25in;text-indent:-.25in;mso-list:l1 level1 lfo1">
<![if !supportLists]><span style="mso-list:Ignore">3.<span style="font:7.0pt "Times New Roman"">      
</span></span><![endif]><i>X3D JSON pages</i><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Initial design-planning page:<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:99.0pt;text-indent:-.25in;mso-list:l1 level3 lfo1">
<![if !supportLists]><span style="mso-list:Ignore">1.<span style="font:7.0pt "Times New Roman"">      
</span></span><![endif]>X3D JSON Encoding<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:99.0pt;text-indent:-.25in;mso-list:l1 level3 lfo1">
<![if !supportLists]><span style="mso-list:Ignore">2.<span style="font:7.0pt "Times New Roman"">      
</span></span><![endif]><a href="https://www.web3d.org/wiki/index.php/X3D_JSON_Encoding">https://www.web3d.org/wiki/index.php/X3D_JSON_Encoding</a><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Detailed design and implementation:<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:99.0pt;text-indent:-.25in;mso-list:l1 level3 lfo1">
<![if !supportLists]><span style="mso-list:Ignore">3.<span style="font:7.0pt "Times New Roman"">      
</span></span><![endif]>X3D to JSON Stylesheet Converter<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:99.0pt;text-indent:-.25in;mso-list:l1 level3 lfo1">
<![if !supportLists]><span style="mso-list:Ignore">4.<span style="font:7.0pt "Times New Roman"">      
</span></span><![endif]><a href="https://www.web3d.org/x3d/stylesheets/X3dToJson.html">https://www.web3d.org/x3d/stylesheets/X3dToJson.html</a><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">These pages need to be reviewed and confirmed or updated.  Upcoming meeting.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">---- <o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:.25in"> </p>
<p class="MsoListParagraph" style="margin-left:.25in;text-indent:-.25in;mso-list:l1 level1 lfo1">
<![if !supportLists]><span style="mso-list:Ignore">4.<span style="font:7.0pt "Times New Roman"">      
</span></span><![endif]><i>Library support</i><o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:.25in"><i> </i></p>
<p class="MsoListParagraph" style="margin-left:.75in;text-indent:-.25in;mso-list:l1 level2 lfo1">
<![if !supportLists]><span style="mso-list:Ignore">1.<span style="font:7.0pt "Times New Roman"">      
</span></span><![endif]>X3DJSONLD<o:p></o:p></p>
<p class="MsoNormal">- <a href="https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcoderextreme%2FX3DJSONLD&data=04%7C01%7Cbrutzman%40nps.edu%7Caedd419d338d4e2c048608d98d1f6394%7C6d936231a51740ea9199f7578963378e%7C0%7C0%7C637695988671908317%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=eQMoErcKX%2BguzfdZrLctDdpsYgBX0vDf8G8ddlPTads%3D&reserved=0">
https://github.com/coderextreme/X3DJSONLD</a><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">This is where John’s collected and latest work is found.  This library runs under node.js and browsers, and has many features, and has many tests for X3D JSON in X3DOM and X_ITE.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">We might try to document it better.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:.75in;text-indent:-.25in;mso-list:l1 level2 lfo1">
<![if !supportLists]><span style="mso-list:Ignore">2.<span style="font:7.0pt "Times New Roman"">      
</span></span><![endif]>X3DJSAIL Java<o:p></o:p></p>
<p class="MsoNormal">X3D Java Scene Access Interface Library (X3DJSAIL)<o:p></o:p></p>
<p class="MsoNormal"><a href="https://www.web3d.org/specifications/java/X3DJSAIL.html">https://www.web3d.org/specifications/java/X3DJSAIL.html</a><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">John has written some Java code that might import JSON to create X3DJSAIL objects, that might work.  However that works via the DOM, and we hope to avoid dual translations for one pass to avoid brittleness.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">X3DJSAIL includes JSON output (export), which was pretty easy, but not parsing (import).<o:p></o:p></p>
<ol style="margin-top:0in" start="12" type="1">
<li class="MsoListParagraph" style="margin-left:0in;mso-list:l2 level1 lfo2"><a href="https://www.web3d.org/specifications/java/X3DJSAIL.html#Conversions">https://www.web3d.org/specifications/java/X3DJSAIL.html#Conversions</a><o:p></o:p></li></ol>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">We looked at whether Saxon library might work for JSON import, since X3DJSAIL already includes Saxon saxon-he-10.6 (HE = Home Edition = open source).  Interestingly there is a function built in that might work,
<o:p></o:p></p>
<ol style="margin-top:0in" start="13" type="1">
<li class="MsoListParagraph" style="margin-left:0in;mso-list:l2 level1 lfo2"><a href="https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.saxonica.com%2Fhtml%2Fdocumentation10%2Ffunctions%2Ffn%2Fjson-to-xml.html&data=04%7C01%7Cbrutzman%40nps.edu%7Caedd419d338d4e2c048608d98d1f6394%7C6d936231a51740ea9199f7578963378e%7C0%7C0%7C637695988671918272%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=Xvf8mEjPPXtvZvE4R2o9oidg3CzS%2BQ4GfNTJC8TKeG4%3D&reserved=0">https://www.saxonica.com/html/documentation10/functions/fn/json-to-xml.html</a><o:p></o:p></li><li class="MsoListParagraph" style="margin-left:0in;mso-list:l2 level1 lfo2"><a href="https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.saxonica.com%2Fhtml%2Fdocumentation10%2Ffunctions%2Ffn%2Fparse-json.html&data=04%7C01%7Cbrutzman%40nps.edu%7Caedd419d338d4e2c048608d98d1f6394%7C6d936231a51740ea9199f7578963378e%7C0%7C0%7C637695988671918272%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=UGdnceO5AiH9C8TCl4mDRxBz%2FwIXcQg8WtJ27mu40Yg%3D&reserved=0">https://www.saxonica.com/html/documentation10/functions/fn/parse-json.html</a><o:p></o:p></li></ol>
<p class="MsoListParagraph" style="margin-left:.75in"> </p>
<p class="MsoListParagraph" style="margin-left:.75in;text-indent:-.25in;mso-list:l1 level2 lfo1">
<![if !supportLists]><span style="mso-list:Ignore">3.<span style="font:7.0pt "Times New Roman"">      
</span></span><![endif]>X3DPSAIL Python<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">There is a Python package “jsonschema” that appears to have 2020-12 support.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<ol style="margin-top:0in" start="15" type="1">
<li class="MsoListParagraph" style="margin-left:0in;mso-list:l2 level1 lfo2">Python package jsonschema, available on py<o:p></o:p></li><li class="MsoListParagraph" style="margin-left:0in;mso-list:l2 level1 lfo2"><a href="https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FJulian%2Fjsonschema&data=04%7C01%7Cbrutzman%40nps.edu%7Caedd419d338d4e2c048608d98d1f6394%7C6d936231a51740ea9199f7578963378e%7C0%7C0%7C637695988671928228%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=y6kvmejccsDRr5%2BiylFsoMlE%2BHFUTOuNcArJ9mEcNdk%3D&reserved=0">https://github.com/Julian/jsonschema</a><o:p></o:p></li></ol>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">---- <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:.25in;text-indent:-.25in;mso-list:l1 level1 lfo1">
<![if !supportLists]><span style="mso-list:Ignore">5.<span style="font:7.0pt "Times New Roman"">      
</span></span><![endif]><i>Online examples</i><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Once we get an updated java library, we will resume unit testing of all X3D JSON examples with Ant.  Our build scripts currently support jslint only.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<ol style="margin-top:0in" start="17" type="1">
<li class="MsoListParagraph" style="margin-left:0in;mso-list:l2 level1 lfo2">X3D Resources: Examples<o:p></o:p></li><li class="MsoListParagraph" style="margin-left:0in;mso-list:l2 level1 lfo2"><a href="https://www.web3d.org/x3d/content/examples/X3dResources.html#Examples">https://www.web3d.org/x3d/content/examples/X3dResources.html#Examples</a><o:p></o:p></li></ol>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">---- <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:.25in;text-indent:-.25in;mso-list:l1 level1 lfo1">
<![if !supportLists]><span style="mso-list:Ignore">6.<span style="font:7.0pt "Times New Roman"">      
</span></span><![endif]><i>X3D JSON Specification plans</i><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Still TODO is make the C/C++/C# draft specifications available in GitHub and web3d.org<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">We have to finish X3D Architecture specification before we can add a JSON specification.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">See the following for the road map of all X3D Specifications.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<ol style="margin-top:0in" start="19" type="1">
<li class="MsoListParagraph" style="margin-left:0in;mso-list:l2 level1 lfo2">X3D Specifications: Schema and DOCTYPE Validation<o:p></o:p></li><li class="MsoListParagraph" style="margin-left:0in;mso-list:l2 level1 lfo2"><a href="https://www.web3d.org/specifications">https://www.web3d.org/specifications</a><o:p></o:p></li><li class="MsoListParagraph" style="margin-left:0in;mso-list:l2 level1 lfo2">X3D Graphics Standards Relationships<o:p></o:p></li><li class="MsoListParagraph" style="margin-left:0in;mso-list:l2 level1 lfo2"><a href="https://www.web3d.org/specifications/X3dSpecificationRelationships.png">https://www.web3d.org/specifications/X3dSpecificationRelationships.png</a><o:p></o:p></li></ol>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">----<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:.25in;text-indent:-.25in;mso-list:l1 level1 lfo1">
<![if !supportLists]><span style="mso-list:Ignore">7.<span style="font:7.0pt "Times New Roman"">      
</span></span><![endif]>John’s movie recommendation<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<ol style="margin-top:0in" start="23" type="1">
<li class="MsoListParagraph" style="margin-left:0in;mso-list:l2 level1 lfo2">"The Billion Dollar Code" NetFlix<o:p></o:p></li><li class="MsoListParagraph" style="margin-left:0in;mso-list:l2 level1 lfo2"><a href="https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.netflix.com%2Ftitle%2F81074012&data=04%7C01%7Cbrutzman%40nps.edu%7Caedd419d338d4e2c048608d98d1f6394%7C6d936231a51740ea9199f7578963378e%7C0%7C0%7C637695988671938184%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=upizM6op87tKI7CfZ1EIvZL5joWU1p6WkOjBbPFTcvo%3D&reserved=0">https://www.netflix.com/title/81074012</a><o:p></o:p></li></ol>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">----<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Having fun diversifying X3D4 again!  8)<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">all the best, Don<br>
<span style="font-size:10.0pt;font-family:"Courier New",serif">-- <br>
Don Brutzman  Naval Postgraduate School, Code USW/Br       <a href="mailto:brutzman@nps.edu">
brutzman@nps.edu</a><br>
Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149<br>
X3D graphics, virtual worlds, navy robotics </span><a href="http://faculty.nps.edu/brutzman"><span style="font-size:10.0pt;font-family:"Courier New",serif">http://faculty.nps.edu/brutzman</span></a><o:p></o:p></p>
</blockquote>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:0in;margin-right:.5in;margin-bottom:5.0pt;margin-left:.5in">
 <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>