{ "X3D": {
    "encoding":"UTF-8",
    "@profile":"Interchange",
    "@version":"3.0",
    "@xsd:noNamespaceSchemaLocation":"http://www.web3d.org/specifications/x3d-3.0.xsd",
    "JSON schema":"http://www.web3d.org/specifications/x3d-3.3-JSONSchema.json",
    "head": {
        "meta": [
          {
            "@name":"title",
            "@content":"Figure08.5AnimatingScale.x3d"
          },
          {
            "@name":"creator",
            "@content":"Figure 8.5, The VRML 2.0 Sourcebook, Copyright [1997] By Andrea L. Ames, David R. Nadeau, and John L. Moreland"
          },
          {
            "@name":"reference",
            "@content":"http://www.wiley.com/legacy/compbooks/vrml2sbk/ch08/08fig05.htm"
          },
          {
            "@name":"translators",
            "@content":"Kevin S. Anderson, Don Brutzman"
          },
          {
            "@name":"created",
            "@content":"8 August 2000"
          },
          {
            "@name":"modified",
            "@content":"14 January 2011"
          },
          {
            "@name":"description",
            "@content":"Animation that scales a coordinate system and the ball built within it."
          },
          {
            "@name":"identifier",
            "@content":"http://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter08-AnimatingPositionOrientationScale/Figure08.5AnimatingScale.x3d"
          },
          {
            "@name":"generator",
            "@content":"X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit"
          },
          {
            "@name":"license",
            "@content":"../../license.html"
          },
          {
            "@name":"translated",
            "@content":"19 March 2017"
          },
          {
            "@name":"generator",
            "@content":"X3dToJson.xslt, http://www.web3d.org/x3d/stylesheets/X3dToJson.html"
          },
          {
            "@name":"warning",
            "@content":"An experimental version of X3D JSON encoding is used for this scene.  Status online at http://www.web3d.org/wiki/index.php/X3D_JSON_Encoding"
          }
        ]
    },
    "Scene": {
        "-children":[
          {
            "#comment":"Pulsing Ball"
          },
          { "Group":
            {
              "-children":[
                { "Transform":
                  {
                    "@DEF":"BallTransform",
                    "-children":[
                      { "Shape":
                        {
                          "-children":[
                            {
                              "#comment":"Note that simple geometry (such as Sphere scale) is not allowed to change after initial creation. Scale changes are animated through parent Transform scale instead."
                            }
                          ],
                          "-geometry":
                            { "Sphere":
                              {
                              }
                            },
                          "-appearance":
                            { "Appearance":
                              {
                                "-material":
                                  { "Material":
                                    {
                                      "@ambientIntensity":1,
                                      "@diffuseColor":[1,0,0],
                                      "@shininess":1,
                                      "@specularColor":[1,0,0]
                                    }
                                  }
                              }
                            }
                        }
                      }
                    ]
                  }
                },
                { "TimeSensor":
                  {
                    "@DEF":"CLOCK",
                    "@cycleInterval":2.0,
                    "@loop":true
                  }
                },
                { "PositionInterpolator":
                  {
                    "@DEF":"BALLSIZE",
                    "@key":[0.0,0.2,0.65,1.0],
                    "@keyValue":[1.0,1.0,1.0,1.5,1.5,1.5,1.1,1.1,1.1,1.0,1.0,1.0]
                  }
                }
              ]
            }
          },
          {
            "#comment":"Use of all-capitals for DEF names helps discriminate them from nodes and prototypes."
          },
          { "ROUTE":
            {
              "@fromField":"fraction_changed",
              "@fromNode":"CLOCK",
              "@toField":"set_fraction",
              "@toNode":"BALLSIZE"
            }
          },
          { "ROUTE":
            {
              "@fromField":"value_changed",
              "@fromNode":"BALLSIZE",
              "@toField":"set_scale",
              "@toNode":"BallTransform"
            }
          }
        ]
    }
  }
}