[x3d-public] x3d json schema validation on x3d resources examples results

John Carlson yottzumm at gmail.com
Sat Mar 19 14:55:00 PDT 2016


We’re in the home stretch in JSON parsing on the X3D JSON examples.  Most of the remaining errors are in #comments

John

json-parse json Illegal escape. at 3985 [character 31 line 125] examples//Basic/development/ScriptSyntaxExample.json


Example:

 "@value":["\"","quote”]

\& is not valid JSON.  Try \\& or \"


json-parse json Expected a ',' or ']' at 2242 [character 60 line 70] examples//Basic/development/TextExamples.json

Example:

"@string":["I don't think so","" \"he said \"Hi\""],

Should be:

["I don't think so",”", "he said \"Hi\”"]


json-parse json Expected a ',' or '}' at 2474 [character 41 line 70] examples//Basic/development/UnquotedTokensNavigationInfoAndFontStyle.json

Example:

 { "#comment":"\\" (backslash quote) escapes a quote mark so that it is a rendered character, instead of a line terminator."
                      }


Should be:

 { "#comment":"\" (backslash quote) escapes a quote mark so that it is a rendered character, instead of a line terminator."
                      }

Perhaps it’s because we’re in a comment


json-parse json Duplicate key "-ErrorChildNodeFieldNameNotFound" examples//Basic/RigidBodyPhysics/CarDemoMain.json


Example:

        "-ErrorChildNodeFieldNameNotFound":[
          { "WheelSensor":
            {
              "@name":"Wheel-0",
              "@DEF":"WHEEL"
            }
          }
        ],
        "-ErrorChildNodeFieldNameNotFound":[
          { "GamepadSensor":
            {
              "@name":"Gamepad-0",
              "@DEF":"GAMEPAD"
            }
          }
        ]


Are these valid sensors? If so, they should be handled!

json-parse json Illegal escape. at 9785 [character 75 line 302] examples//Basic/X3dSpecifications/X3dHeaderPrototypeSyntaxExamples.json



 { "#comment":"alternative: Text string='\"He said, \"Immel did it!\"\"'"
                      }

\" is not valid.  Should be \\" or \” maybe needs to be all matches?   This is in a comment.

json-parse json Expected a ',' or '}' at 3240 [character 108 line 93] examples//X3dForWebAuthors/Chapter02-GeometryPrimitives/TextSpecialCharacters.json

                { "#comment":"quotation \" can be used as part of X3D string if escaped with backslash: \\""
                },


Extra \ not needed (perhaps it’s because it’s in a comment?



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20160319/9e0f914a/attachment.html>


More information about the x3d-public mailing list