<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 12/6/21 00:41, John Carlson wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:3c72fe63-fefc-93b7-7359-9f0e5fbc91e9@gmail.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <p><br>
      </p>
      <div class="moz-cite-prefix">On 12/6/21 00:29, John Carlson wrote:<br>
      </div>
      <blockquote type="cite"
        cite="mid:1eb75cb9-e425-fd76-bc49-817a1982031d@gmail.com">
        <meta http-equiv="Content-Type" content="text/html;
          charset=UTF-8">
        <p><br>
        </p>
        <div class="moz-cite-prefix">On 12/6/21 00:19, John Carlson
          wrote:<br>
        </div>
        <blockquote type="cite"
          cite="mid:012766b2-e959-4c60-cd8a-fe864220f4f5@gmail.com">
          <meta http-equiv="Content-Type" content="text/html;
            charset=UTF-8">
          <p>Don, I will probably begin working on JSON export testing
            after I take the JSON import example for a short spin.  It's
            good to get a code download.</p>
          <p>Note that SFVec3f should put a tuple in the structure when
            parsing JSON...normal JSON does not include tuples, so there
            needs to be a type conversion.</p>
          <p>That is, centerOfRotation and position in Viewpoint should
            be tuples, not lists as JSON provides.</p>
        </blockquote>
        Fixed as far as I am concerned right now.  I will try to remove
        my tuple soon.<br>
      </blockquote>
      Tested removing tuple() without any problems.<br>
    </blockquote>
    <p>Further problems (previously found, but hidden) indicated using
      tuple() solved problems, so I put the tuple for SFVec3f back in.</p>
    <p>Working on further problems:</p>
    <p><span style="font-family:monospace"><span
          style="color:#000000;background-color:#ffffff;">Traceback
          (most recent call last):
        </span><br>
         File
        "/c/x3d-code/www.web3d.org/x3d/content/examples/x3dinput.py",
        line 141, in <module>
        <br>
           scene = newscene.parseJSON(data["X3D"])
        <br>
         File
        "/c/x3d-code/www.web3d.org/x3d/content/examples/x3dinput.py",
        line 12, in parseJSON
        <br>
           self.Scene.parseJSON(data["Scene"])
        <br>
         File
        "/c/x3d-code/www.web3d.org/x3d/content/examples/x3dinput.py",
        line 28, in parseJSON
        <br>
           self.children.parseJSON(data)
        <br>
         File
        "/c/x3d-code/www.web3d.org/x3d/content/examples/x3dinput.py",
        line 131, in parseJSON
        <br>
           sfnode.parseJSON(c)
        <br>
         File
        "/c/x3d-code/www.web3d.org/x3d/content/examples/x3dinput.py",
        line 121, in parseJSON
        <br>
           self.value.parseJSON(data[key])
        <br>
         File
        "/c/x3d-code/www.web3d.org/x3d/content/examples/x3dinput.py",
        line 55, in parseJSON
        <br>
           self.children.parseJSON(data)
        <br>
         File
        "/c/x3d-code/www.web3d.org/x3d/content/examples/x3dinput.py",
        line 131, in parseJSON
        <br>
           sfnode.parseJSON(c)
        <br>
         File
        "/c/x3d-code/www.web3d.org/x3d/content/examples/x3dinput.py",
        line 121, in parseJSON
        <br>
           self.value.parseJSON(data[key])
        <br>
         File
        "/c/x3d-code/www.web3d.org/x3d/content/examples/x3dinput.py",
        line 63, in parseJSON
        <br>
           self.children = self.children.value
        <br>
         File "/c/x3d-code/www.web3d.org/x3d/content/examples/x3d.py",
        line 88922, in children
        <br>
           assertValidMFNode(children)
        <br>
         File "/c/x3d-code/www.web3d.org/x3d/content/examples/x3d.py",
        line 3206, in assertValidMFNode
        <br>
           raise X3DTypeError(str(value)[:100] + ' element ' + str(each)
        + ', type=' + str(type(each)) + ' is not a valid _X3DNode or
        _X3DStatement for MFNode')
        <br>
         File "/c/x3d-code/www.web3d.org/x3d/content/examples/x3d.py",
        line 4448, in __str__
        <br>
           return self.__repl__()
        <br>
         File "/c/x3d-code/www.web3d.org/x3d/content/examples/x3d.py",
        line 4446, in __repl__
        <br>
           return str(self.value)
        <br>
         File "/c/x3d-code/www.web3d.org/x3d/content/examples/x3d.py",
        line 7950, in __str__
        <br>
           return self.__repl__().strip() # X3DNode
        <br>
         File "/c/x3d-code/www.web3d.org/x3d/content/examples/x3d.py",
        line 7945, in __repl__
        <br>
           result += str(name) + '='       + str(value)[:100]       +
        ','
        <br>
         File "/c/x3d-code/www.web3d.org/x3d/content/examples/x3d.py",
        line 7950, in __str__
        <br>
           return self.__repl__().strip() # X3DNode
        <br>
         File "/c/x3d-code/www.web3d.org/x3d/content/examples/x3d.py",
        line 7921, in __repl__
        <br>
           if self.FIELD_DECLARATIONS():
        <br>
        AttributeError: 'JSON_Geometry' object has no attribute
        'FIELD_DECLARATIONS'</span></p>
    <p><span style="font-family:monospace">I'm not convinced that this
        JSON_Geometry class should exist, I just added it for parsing. 
        It looks like this:</span></p>
    <p><br>
      <span style="font-family:monospace"><span
          style="font-family:monospace"><span
            style="color:#000000;background-color:#ffffff;">class
            JSON_Geometry(_X3DGeometryNode):
          </span><br>
             def parseJSON(self, data):
          <br>
                 return self
          <br>
          <br>
          Not much yet.  But yeah, it looks like inspection of x3d.py
          does not reveal a specific FIELD_DECLARATIONS variable in the
          superclasses?   Maybe I should just inherit from object?  I
          will try that.</span></span></p>
    <p><span style="font-family:monospace"><span
          style="font-family:monospace">Whew!<br>
        </span></span></p>
    <br>
  </body>
</html>