{ "X3D": {
    "encoding":"UTF-8",
    "@profile":"Immersive",
    "@version":"4.0",
    "@xsd:noNamespaceSchemaLocation":"https://www.web3d.org/specifications/x3d-4.0.xsd",
    "JSON schema":"https://www.web3d.org/specifications/x3d-4.0-JSONSchema.autogenerated.json",
    "head": {
        "meta": [
          {
            "@name":"title",
            "@content":"TestScriptFieldSFTime.x3d"
          },
          {
            "@name":"description",
            "@content":"Test correct conversion of X3D SFTime field initializations from XML to Java to ClassicVRML"
          },
          {
            "@name":"creator",
            "@content":"Don Brutzman"
          },
          {
            "@name":"created",
            "@content":"17 November 2024"
          },
          {
            "@name":"modified",
            "@content":"17 November 2024"
          },
          {
            "@name":"reference",
            "@content":"../Followers/CoasterDamper.x3d"
          },
          {
            "@name":"subject",
            "@content":"X3D conversion test"
          },
          {
            "@name":"warning",
            "@content":"under development"
          },
          {
            "@name":"identifier",
            "@content":"TestScriptFieldSFTime.x3d"
          },
          {
            "@name":"generator",
            "@content":"X3D-Edit 4.0, https://www.web3d.org/x3d/tools/X3D-Edit"
          },
          {
            "@name":"license",
            "@content":"../license.html"
          },
          {
            "@name":"translated",
            "@content":"20 April 2026"
          },
          {
            "@name":"generator",
            "@content":"X3dToJson.xslt, https://www.web3d.org/x3d/stylesheets/X3dToJson.html"
          },
          {
            "@name":"reference",
            "@content":"X3D JSON encoding: https://www.web3d.org/wiki/index.php/X3D_JSON_Encoding"
          }
        ]
    },
    "Scene": {
        "-children":[
          { "WorldInfo":
            {
              "@title":"TestScriptFieldSFTime.x3d"
            }
          },
          { "Script":
            {
              "@DEF":"TestScript",
              "field": [
                {
                  "@name":"initialTime",
                  "@accessType":"initializeOnly",
                  "@type":"SFTime",
                  "@value":0
                },
                {
                  "@name":"timeIncrement",
                  "@accessType":"inputOutput",
                  "@type":"SFTime",
                  "@value":1
                },
                {
                  "@name":"timeStepTrigger",
                  "@accessType":"inputOnly",
                  "@type":"SFTime"
                },
                {
                  "@name":"currentTime",
                  "@accessType":"outputOnly",
                  "@type":"SFTime"
                }
              ],
              "#sourceCode":[
"",
"",
"ecmascript:",
"function initialize (eventValue)",
"{",
"  currentTime initialTime; // sends output event",
"}",
"function timeStepTrigger (eventValue)",
"{",
"  currentTime += timeIncrement; // sends output event",
"}",
"",
""
]
            }
          }
        ]
    }
  }
}