{ "X3D": {
    "encoding":"UTF-8",
    "@profile":"Immersive",
    "@version":"3.0",
    "@xsd:noNamespaceSchemaLocation":"https://www.web3d.org/specifications/x3d-3.0.xsd",
    "JSON schema":"https://www.web3d.org/specifications/x3d-4.0-JSONSchema.autogenerated.json",
    "head": {
        "meta": [
          {
            "@name":"title",
            "@content":"BradenPrototypeInitializeExample.x3d"
          },
          {
            "@name":"creator",
            "@content":"Don Brutzman"
          },
          {
            "@name":"created",
            "@content":"5 March 2000"
          },
          {
            "@name":"modified",
            "@content":"20 October 2019"
          },
          {
            "@name":"description",
            "@content":"Default color red, overridden color green: example answer to email question showing how to initialize a node field when creating a ProtoInstance."
          },
          {
            "@name":"reference",
            "@content":"https://www.web3d.org/WorkingGroups/x3d-contributors/hypermail/2000/0487.html"
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/Basic/development/BradenPrototypeInitializeExample.x3d"
          },
          {
            "@name":"generator",
            "@content":"X3D-Edit 3.3, 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":"BradenPrototypeInitializeExample.x3d"
            }
          },
          { "ProtoDeclare":
            {
              "@name":"Foo",
              "ProtoInterface": {
                  "field": [
                    {
                      "@name":"runtimeMaterialInstance",
                      "@accessType":"inputOutput",
                      "@type":"SFNode",
                      "-children":[
                        { "Material":
                          {
                            "@diffuseColor":[1,0,0]
                          }
                        }
                      ]
                    }
                  ]
              },
              "ProtoBody": {
                  "-children":[
                    { "Shape":
                      {
                        "-appearance":
                          { "Appearance":
                            {
                              "@DEF":"FOO_APPEARANCE",
                              "IS": {
                                  "connect": [
                                    {
                                      "@nodeField":"material",
                                      "@protoField":"runtimeMaterialInstance"
                                    }
                                  ]
                              }
                            }
                          },
                        "-geometry":
                          { "Sphere":
                            {
                            }
                          }
                      }
                    }
                  ]
              }
            }
          },
          { "ProtoInstance":
            {
              "@name":"Foo",
              "fieldValue": [
                {
                  "@name":"runtimeMaterialInstance",
                  "-children":[
                    { "Material":
                      {
                        "@diffuseColor":[0,1,0]
                      }
                    }
                  ]
                }
              ]
            }
          }
        ]
    }
  }
}