{ "X3D": {
    "encoding":"UTF-8",
    "@profile":"Interchange",
    "@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":"TestMetadataNodes.x3d"
          },
          {
            "@name":"description",
            "@content":"Test parentage and type checking of MetadataNodes using X3D4 defaults."
          },
          {
            "@name":"creator",
            "@content":"Don Brutzman"
          },
          {
            "@name":"created",
            "@content":"12 March 2005"
          },
          {
            "@name":"modified",
            "@content":"18 May 2024"
          },
          {
            "@name":"reference",
            "@content":"https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/components/core.html#NodeReference"
          },
          {
            "@name":"reference",
            "@content":"https://www.web3d.org/x3d/content/X3dTooltips.html#MetadataDouble"
          },
          {
            "@name":"subject",
            "@content":"metadata nodes test"
          },
          {
            "@name":"warning",
            "@content":"MetadataString node within NavigationInfo is legal X3D but will cause error when translating to VRML97 due to (previously) disallowed parent node."
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/Basic/development/TestMetadataNodes.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":"TestMetadataNodes.x3d"
            }
          },
          { "Background":
            {
              "@skyColor":[0.5,0.5,1]
            }
          },
          { "Anchor":
            {
              "@description":"Click to see documentation example",
              "@url":["TestMetadataNodesIndex.html","https://www.web3d.org/x3d/content/examples/Basic/development/TestMetadataNodesIndex.html"],
              "-children":[
                { "Shape":
                  {
                    "-appearance":
                      { "Appearance":
                        {
                          "-material":
                            { "Material":
                              {
                                "@diffuseColor":[0.8,0.9,0.9]
                              }
                            }
                        }
                      },
                    "-geometry":
                      { "Text":
                        {
                          "@length":[0],
                          "@string":["TestMetadataNodes.x3d","shows X3D4 Metadata nodes"],
                          "-fontStyle":
                            { "FontStyle":
                              {
                                "@DEF":"TextFont",
                                "@justify":["MIDDLE","MIDDLE"],
                                "@style":"BOLD"
                              }
                            }
                        }
                      }
                  }
                }
              ]
            }
          },
          { "Group":
            {
              "-metadata":
                { "MetadataSet":
                  {
                    "@name":"TestSet",
                    "@DEF":"M0",
                    "-value":[
                      { "MetadataBoolean":
                        {
                          "@DEF":"M1",
                          "@value":[true,false,true]
                        }
                      },
                      { "MetadataString":
                        {
                          "@DEF":"M2",
                          "@value":["internal","metadata"]
                        }
                      },
                      { "MetadataDouble":
                        {
                          "@DEF":"M3",
                          "@value":[1.0]
                        }
                      },
                      { "MetadataFloat":
                        {
                          "@DEF":"M4",
                          "@value":[1.0]
                        }
                      },
                      { "MetadataInteger":
                        {
                          "@DEF":"M5",
                          "@value":[1]
                        }
                      },
                      { "MetadataSet":
                        {
                          "@DEF":"M6",
                          "-children":[
                            {
                              "#comment":"presence of comment will suppress warning about no MetadataSet children found"
                            }
                          ]
                        }
                      }
                    ],
                    "-children":[
                      {
                        "#comment":"intermediate comment should not be sorted"
                      }
                    ]
                  }
                }
            }
          },
          { "NavigationInfo":
            {
              "-metadata":
                { "MetadataString":
                  {
                    "@name":"Test illegal parent under VRML97"
                  }
                }
            }
          },
          {
            "#comment":"Metadata nodes are allowed as root nodes in X3D4, but must define containerField='metadata'"
          },
          {
            "#comment":"https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/concepts.html#Rootnodes"
          },
          { "MetadataSet":
            {
              "@USE":"M0"
            }
          },
          { "MetadataBoolean":
            {
              "@USE":"M1"
            }
          },
          { "MetadataString":
            {
              "@USE":"M2"
            }
          },
          { "MetadataDouble":
            {
              "@USE":"M3"
            }
          },
          { "MetadataFloat":
            {
              "@USE":"M4"
            }
          },
          { "MetadataInteger":
            {
              "@USE":"M5"
            }
          },
          { "MetadataSet":
            {
              "@USE":"M6"
            }
          },
          {
            "#comment":"Test case: Metadata nodes are only allowed to contain other metadata nodes, test fragment follows"
          },
          {
            "#comment":"<MetadataSet DEF='ErroneousChild'> <DirectionalLight/> </MetadataSet>"
          }
        ]
    }
  }
}