[x3d-public] Low hanging fruit for JSON parsing (not validation) of archive.

John Carlson yottzumm at gmail.com
Tue Mar 30 15:48:05 PDT 2021


Low hanging fruit for JSON parsing (not schema validation) $ grep Failed 
results.txt|grep -v node_modules
Failed JSON parse 
/c/x3d-code/www.web3d.org/x3d/content/examples/Savage/Scenarios/LimitedObjectiveExperimentPortHueneme/LimitedObjectiveExperimentPortHuenemeDIS.json 
SyntaxError: Unexpected string in JSON at position 11316
Failed JSON parse 
/c/x3d-code/www.web3d.org/x3d/content/examples/Savage/Scenarios/LimitedObjectiveExperimentPortHueneme/LimitedObjectiveExperimentPortHueneme.json 
SyntaxError: Unexpected string in JSON at position 10445
Failed JSON parse 
/c/x3d-code/www.web3d.org/x3d/content/examples/Savage/Locations/PanamaCityFlorida/PanamaCityGeo.json 
SyntaxError: Unexpected string in JSON at position 5198
Failed JSON parse 
/c/x3d-code/www.web3d.org/x3d/content/examples/Savage/Weapons/UnderwaterMines/SphericalMinePrototype.json 
SyntaxError: Unexpected string in JSON at position 23534


These are things jsonlint should catch.   I am not sure about jshint or 
jslint.


These files are dated Jan 23 2021. Your files may be more up to date as 
I don't really know how to update Savage svn.


I am currently wondering if JSON files are checked into Savage folder or 
not.  I will re-expand my JSON zip and try again.


John






More information about the x3d-public mailing list