[x3d-public] Results from jsonlint, X3d archives

John Carlson yottzumm at gmail.com
Fri Nov 20 22:44:45 PST 2020


For a visualization of the errors, I did a grep:

$ find . -name '*json' -print0|xargs -0 grep '\[,'
./Basic/development/MetadataPrototypes.json:
     "@string":[,""],
./Basic/development/MetadataPrototypes.json:
     "@string":[,""],
./Basic/development/TestSchematronDiagnostics.json:
 "@string":[,"",x\" '],
./ConformanceNist/BindableNodes/Viewpoint/jumpcut_proximitysensor.json:
                           "@string":[,""],
./ConformanceNist/BindableNodes/Viewpoint/viewinline.json:
                     "@string":[,""],
./Vrml2Sourcebook/Siggraph98Course/Button.json:
 "@value":[,""]
./Vrml2Sourcebook/Siggraph98Course/Button.json:
 "@value":[,""]
./Vrml2Sourcebook/Siggraph98Course/Cut.json:
                 "@string":[,""],
./Vrml2Sourcebook/Siggraph98Course/Loader.json:
 "@value":[,""]
./Vrml2Sourcebook/Siggraph98Course/Query.json:
 "@string":[,""],
./Vrml2Sourcebook/Siggraph98Course/TextFont.json:
 "@string":[,"","Sans"],
./Vrml2Sourcebook/Siggraph98Course/TextFont.json:
 "@string":[,"",,"","Typewriter"],
./Vrml2Sourcebook/Siggraph98Course/TextSize.json:
 "@string":[,"","Medium"],
./Vrml2Sourcebook/Siggraph98Course/TextSize.json:
 "@string":[,"","Large"],
./X3dForWebAuthors/Chapter14Prototypes/HudKelpForest.json:
             "@value":[,""]
./X3dForWebAuthors/Chapter14Prototypes/HudKelpForest_RoundTrip.json:
                       "@value":[,""]


On Sat, Nov 21, 2020 at 12:33 AM John Carlson <yottzumm at gmail.com> wrote:

> Many of these are due to-- [,  non-existent first element in an array.
>  Perhaps there is an issue with X3dToJson.xslt?
>
> On Sat, Nov 21, 2020 at 12:26 AM John Carlson <yottzumm at gmail.com> wrote:
>
>> Found some more, will try to Download JSON zip and rerun.
>>
>> $ grep Failed results.txt |grep parse|grep -v originals|grep -v
>> develop|grep -v Xvl|grep -v save
>> Failed JSON parse C:/x3d-code/
>> www.web3d.org/x3d/content/examples/ConformanceNist/BindableNodes/Viewpoint/jumpcut_proximitysensor.json
>> SyntaxError: Unexpected token , in JSON at position 6705
>> Failed JSON parse C:/x3d-code/
>> www.web3d.org/x3d/content/examples/ConformanceNist/BindableNodes/Viewpoint/viewinline.json
>> SyntaxError: Unexpected token , in JSON at position 15644
>> Failed JSON parse C:/x3d-code/
>> www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/Button.json
>> SyntaxError: Unexpected token , in JSON at position 3487
>> Failed JSON parse C:/x3d-code/
>> www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/Cut.json
>> SyntaxError: Unexpected token , in JSON at position 12319
>> Failed JSON parse C:/x3d-code/
>> www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/Loader.json
>> SyntaxError: Unexpected token , in JSON at position 8231
>> Failed JSON parse C:/x3d-code/
>> www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/Query.json
>> SyntaxError: Unexpected token , in JSON at position 4342
>> Failed JSON parse C:/x3d-code/
>> www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/TextFont.json
>> SyntaxError: Unexpected token , in JSON at position 3918
>> Failed JSON parse C:/x3d-code/
>> www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/TextSize.json
>> SyntaxError: Unexpected token , in JSON at position 3958
>> Failed JSON parse C:/x3d-code/
>> www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter14Prototypes/HudKelpForest.json
>> SyntaxError: Unexpected token , in JSON at position 12368
>> Failed JSON parse C:/x3d-code/
>> www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter14Prototypes/HudKelpForest_RoundTrip.json
>> SyntaxError: Unexpected token , in JSON at position 12474
>>
>> On Sat, Nov 21, 2020 at 12:11 AM John Carlson <yottzumm at gmail.com> wrote:
>>
>>> Best I've seen yet.  I recommend putting quotes around version where
>>> it's a number (should be a string), just for grins!  I'm not sure what you
>>> want to do with the saved Nancy file.
>>>
>>> $ more jsonparseresults.txt |grep parse|grep -v development|grep -v
>>> Xvl|grep -v originals
>>> json-parse json Expected a ',' or '}' at 2510 [character 32 line 69]
>>> C:/x3d-code/
>>> www.web3d.org/x3d/content/examples/Basic/HumanoidAnimation/save/NancyNativeTagsWrapped.json
>>> json-parse json JSONObject["@version"] not a string. C:/x3d-code/
>>> www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/HelloWorldScenes/HelloWorldCommentedAlternativeEncoding.json
>>> json-parse json JSONObject["@version"] not a string. C:/x3d-code/
>>> www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/HelloWorldScenes/HelloWorldCommentedOriginalEncoding.json
>>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20201121/11eac898/attachment.html>


More information about the x3d-public mailing list