<div dir="auto">Okay!   Generally I work off checked in files,   I don’t know of any “released” branches on savage.nps.EDI</div><div dir="auto"><br></div><div dir="auto">John</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 13, 2021 at 11:51 AM Don Brutzman <<a href="mailto:brutzman@nps.edu">brutzman@nps.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">I am not finding these errors in published versions at<br>
<br>
* <a href="https://savage.nps.edu/Savage/Scenarios/LimitedObjectiveExperimentPortHueneme/LimitedObjectiveExperimentPortHuenemeDISIndex.html" rel="noreferrer" target="_blank">https://savage.nps.edu/Savage/Scenarios/LimitedObjectiveExperimentPortHueneme/LimitedObjectiveExperimentPortHuenemeDISIndex.html</a><br>
<br>
On 4/11/2021 8:49 PM, John Carlson wrote:<br>
> <br>
> X3dToJson.xlst appears to be generating a bad JSON string array for<br>
> NavigationInfo @type?<br>
> <br>
> Original X3D XML looks like:<br>
> <br>
> LimitedObjectiveExperimentPortHuenemeDIS.x3d: <NavigationInfo speed='10'<br>
> type='EXAMINE" "FLY" "ANY' visibilityLimit='30000'/><br>
> LimitedObjectiveExperimentPortHueneme.x3d:    <NavigationInfo<br>
> avatarSize='2 1.6 .75' speed='10' type='EXAMINE" "FLY" "ANY'<br>
> visibilityLimit='30000'/><br>
> <br>
> There are other, different examples in the same folder that used the old<br>
> way of doing an MFString.<br>
> <br>
> I'm not sure what a valid XML MFString is any more (see the type<br>
> attribute in both cases), please don't direct me to a web site, just<br>
> output good JSON, thanks!<br>
> <br>
> No obvious error or warning noted in meta.<br>
> <br>
> Note, I have begun stripping off "/c/x3d-code/<a href="https://nam10.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.web3d.org%2F&amp;data=04%7C01%7Cbrutzman%40nps.edu%7C63729054388e483d38fd08d8fd6603b7%7C6d936231a51740ea9199f7578963378e%7C0%7C0%7C637537962498006664%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=6k4Ns7KqXQ1GriJHdN%2BifC0IC8lYfnqlS5whZNEeq9o%3D&amp;reserved=0" rel="noreferrer" target="_blank">https://nam10.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.web3d.org%2F&amp;data=04%7C01%7Cbrutzman%40nps.edu%7C63729054388e483d38fd08d8fd6603b7%7C6d936231a51740ea9199f7578963378e%7C0%7C0%7C637537962498006664%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=6k4Ns7KqXQ1GriJHdN%2BifC0IC8lYfnqlS5whZNEeq9o%3D&amp;reserved=0</a>" fromthe<br>
> file names I post in order that a good filename is retained. Let me know<br>
> if this is working.<br>
> <br>
> Maybe instead of being known as QA Specialist, I should be known as a<br>
> Errorist?  Lol!<br>
> <br>
> John<br>
> <br>
> $ jsonlint<br>
> x3d/content/examples/Savage/Scenarios/LimitedObjectiveExperimentPortHueneme/LimitedObjectiveExperimentPortHueneme.json<br>
> Error: Parse error on line 241:<br>
> ... "@type":["EXAMINE" "FLY" "ANY"],<br>
> -----------------------^<br>
> Expecting 'EOF', '}', ':', ',', ']', got 'STRING'<br>
>     at Object.parseError<br>
> (/usr/local/lib/node_modules/jsonlint/lib/jsonlint.js:55:11)<br>
>     at Object.parse<br>
> (/usr/local/lib/node_modules/jsonlint/lib/jsonlint.js:132:22)<br>
>     at parse (/usr/local/lib/node_modules/jsonlint/lib/cli.js:82:14)<br>
>     at main (/usr/local/lib/node_modules/jsonlint/lib/cli.js:135:14)<br>
>     at Object.<anonymous><br>
> (/usr/local/lib/node_modules/jsonlint/lib/cli.js:179:1)<br>
>     at Module._compile (internal/modules/cjs/loader.js:1138:30)<br>
>     at Object.Module._extensions..js<br>
> (internal/modules/cjs/loader.js:1158:10)<br>
>     at Module.load (internal/modules/cjs/loader.js:986:32)<br>
>     at Function.Module._load (internal/modules/cjs/loader.js:879:14)<br>
>     at Function.executeUserEntryPoint [as runMain]<br>
> (internal/modules/run_main.js:71:12)<br>
> <br>
> <br>
> <br>
> $ jsonlint<br>
> x3d/content/examples/Savage/Scenarios/LimitedObjectiveExperimentPortHueneme/LimitedObjectiveExperimentPortHuenemeDIS.json<br>
> Error: Parse error on line 260:<br>
> ... "@type":["EXAMINE" "FLY" "ANY"],<br>
> -----------------------^<br>
> Expecting 'EOF', '}', ':', ',', ']', got 'STRING'<br>
>     at Object.parseError<br>
> (/usr/local/lib/node_modules/jsonlint/lib/jsonlint.js:55:11)<br>
>     at Object.parse<br>
> (/usr/local/lib/node_modules/jsonlint/lib/jsonlint.js:132:22)<br>
>     at parse (/usr/local/lib/node_modules/jsonlint/lib/cli.js:82:14)<br>
>     at main (/usr/local/lib/node_modules/jsonlint/lib/cli.js:135:14)<br>
>     at Object.<anonymous><br>
> (/usr/local/lib/node_modules/jsonlint/lib/cli.js:179:1)<br>
>     at Module._compile (internal/modules/cjs/loader.js:1138:30)<br>
>     at Object.Module._extensions..js<br>
> (internal/modules/cjs/loader.js:1158:10)<br>
>     at Module.load (internal/modules/cjs/loader.js:986:32)<br>
>     at Function.Module._load (internal/modules/cjs/loader.js:879:14)<br>
>     at Function.executeUserEntryPoint [as runMain]<br>
> (internal/modules/run_main.js:71:12)<br>
> <br>
> <br>
> This pretty much concludes all of the X3D JSON parsing errors I found<br>
> with my tools.<br>
> <br>
> <br>
> I think the X3D examples are pretty much good to go except for the last<br>
> 5 problems noted.<br>
> <br>
> <br>
> We are now progressing into how the X3D JSON schema is documented.<br>
> <br>
> John<br>
> <br>
<br>
all the best, Don<br>
-- <br>
Don Brutzman  Naval Postgraduate School, Code USW/Br       <a href="mailto:brutzman@nps.edu" target="_blank">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 <a href="http://faculty.nps.edu/brutzman" rel="noreferrer" target="_blank">http://faculty.nps.edu/brutzman</a><br>
</blockquote></div></div>