{ "X3D": {
    "encoding":"UTF-8",
    "@profile":"Immersive",
    "@version":"3.3",
    "@xsd:noNamespaceSchemaLocation":"https://www.web3d.org/specifications/x3d-3.3.xsd",
    "JSON schema":"https://www.web3d.org/specifications/x3d-4.0-JSONSchema.autogenerated.json",
    "head": {
        "-children":[
          {
            "#comment":"note quotes in comment and meta reference: https://en.wikipedia.org/wiki/\"Hello,_World!\"_program"
          }
        ],
        "meta": [
          {
            "@name":"title",
            "@content":"TextSpecialCharacters.x3d"
          },
          {
            "@name":"description",
            "@content":"Text node demonstration of quotation, apostrophe, ampersand and backslash characters using X3D MFString escaping for XML character entities."
          },
          {
            "@name":"creator",
            "@content":"Don Brutzman"
          },
          {
            "@name":"created",
            "@content":"12 July 2008"
          },
          {
            "@name":"modified",
            "@content":"20 October 2019"
          },
          {
            "@name":"info",
            "@content":"See screenshot figures and various encoding conversions to note that multiple equivalences in XML character representations lead to consistent results despite slight differences in source."
          },
          {
            "@name":"reference",
            "@content":"TextSpecialCharactersScreenshotXmlSource.png"
          },
          {
            "@name":"reference",
            "@content":"TextSpecialCharactersScreenshotPrettyPrintHtml.png"
          },
          {
            "@name":"reference",
            "@content":"Character entity references in HTML 4, http://www.w3.org/TR/REC-html40/sgml/entities.html"
          },
          {
            "@name":"reference",
            "@content":"https://en.wikipedia.org/wiki/\"Hello,_World!\"_program"
          },
          {
            "@name":"rights",
            "@content":"Copyright (c) Don Brutzman and Leonard Daly, 2008"
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter02GeometryPrimitives/TextSpecialCharacters.x3d"
          },
          {
            "@name":"generator",
            "@content":"X3D-Edit 3.3, https://www.web3d.org/x3d/tools/X3D-Edit"
          },
          {
            "@name":"license",
            "@content":"../license.html"
          },
          {
            "@name":"translated",
            "@content":"25 March 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":"TextSpecialCharacters.x3d"
            }
          },
          { "Background":
            {
              "@skyColor":[1,1,1]
            }
          },
          { "Viewpoint":
            {
              "@description":"Default View",
              "@position":[0,0,15]
            }
          },
          { "Shape":
            {
              "-children":[
                {
                  "#comment":"Empty string \"\" means to skip a line"
                },
                {
                  "#comment":"The ampersand escape characters are based on XML rules"
                },
                {
                  "#comment":"apostrophe ' is &apos; and needs to be escaped in single-quote delimiters used for string='value' attribute"
                },
                {
                  "#comment":"ampersand & is &amp; and needs to be escaped"
                },
                {
                  "#comment":"quotation mark \" is &quot; and isn't needed if single-quote delimiters used for string='value' attribute"
                },
                {
                  "#comment":"quotation mark \" character can be used within an X3D string value if escaped with backslash \\ as \\\"\""
                },
                {
                  "#comment":"backslash \\ is used as escape character for \" (and itself) in X3D"
                },
                {
                  "#comment":"character entities are listed in HTML specification and are good for any XML"
                }
              ],
              "-geometry":
                { "Text":
                  {
                    "@DEF":"DefaultText",
                    "@string":["Character entity substitutions:","empty string \"\" skips a line:","apostrophe ' is &apos;","ampersand & is &","quote mark \" is &quot;","backslash \\ is X3D escape character","double backslash \\\\ is X3D backslash \\ character","Pi Π is &#928; XML character entity"],
                    "-fontStyle":
                      { "FontStyle":
                        {
                          "@DEF":"CenteredFontStyle",
                          "@justify":["MIDDLE","MIDDLE"]
                        }
                      }
                  }
                },
              "-appearance":
                { "Appearance":
                  {
                    "-material":
                      { "Material":
                        {
                          "@DEF":"DefaultMaterial",
                          "@diffuseColor":[0.2,0.2,0.2]
                        }
                      }
                  }
                }
            }
          }
        ]
    }
  }
}