[x3d-public] Results from jsonlint, X3d archives

John Carlson yottzumm at gmail.com
Sat Nov 21 00:56:29 PST 2020


I am very happy this is being taken care of!  This was one thing on the
back burner.

On Sat, Nov 21, 2020 at 2:04 AM Don Brutzman <brutzman at nps.edu> wrote:

> These all look identical so there is probably a single simple bug.
>
> Am guessing the superflous comma is related to initial (or solitary) empty
> string value in an MFString list.
>
> Next steps in sleuthing:
>
> - pick one or two example models (likely containing MetadataString and
> Text nodes),
> - look at original XML for what information is expected,
> - manually translate to show what is expected JSON output,
> - comparison between expected and converted is the error result,
> localizing the problem.
> - going into stylesheet to fix the conversion logic error is then
> straightforward.
>
> p.s. if you look at TestSchematronDiagnostics you will see that it is
> nothing but syntax errors for testing purposes, so conversion success is
> not expected.
>
> On 11/20/2020 10:44 PM, John Carlson wrote:
> >
> > 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
> <mailto: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
> <mailto: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
> <
> http://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
> <
> http://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
> <
> http://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
> <
> http://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
> <
> http://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
> <
> http://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
> <
> http://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
> <
> http://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
> <
> http://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
> <
> http://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 <mailto: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
> <
> http://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
> <
> http://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
> <
> http://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/HelloWorldScenes/HelloWorldCommentedOriginalEncoding.json
> >
> >
>
> all the best, Don
> --
> Don Brutzman  Naval Postgraduate School, Code USW/Br
> brutzman at nps.edu
> Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149
> X3D graphics, virtual worlds, navy robotics
> http://faculty.nps.edu/brutzman
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20201121/10639edc/attachment.html>


More information about the x3d-public mailing list