<p dir="ltr">There might be a comment before the first x3d object.</p>
<div class="gmail_quote">On Nov 23, 2015 5:19 PM, "John Carlson" <<a href="mailto:yottzumm@gmail.com">yottzumm@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">I wonder if we should develop a X3D JSON parser which shows streaming parsing of X3D JSON for large files.  Getting a large file which our current tools don't support would be a good idea.</p>
<div class="gmail_quote">On Nov 23, 2015 5:11 PM, "John Carlson" <<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Don is correct from my reading.  Another thing you can do is parse the JSON, then insure the first *object* has an "X3D" key.  Good luck!</p>
<div class="gmail_quote">On Nov 23, 2015 5:04 PM, "Don Brutzman" <<a href="mailto:brutzman@nps.edu" target="_blank">brutzman@nps.edu</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 11/20/2015 11:37 AM, Roy Walmsley wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Don and John,<br>
<br>
Sounds like you are making excellent progress on JSON.<br>
</blockquote>
<br>
thanks.  updated the description page today, not many TODO items left.<br>
<br>
        <a href="http://www.web3d.org/x3d/stylesheets/X3dToJson.html" rel="noreferrer" target="_blank">http://www.web3d.org/x3d/stylesheets/X3dToJson.html</a><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
So, I am just thinking ahead, to maybe one day getting JSON to load directly into my C++ Viewer. I am thinking of a loader, and asking myself the following question:<br>
<br>
Apart from the .json file extension, is there any other definitive way of determining that this is, or is not, a JSON X3D file. I am looking at your HelloWorld.json example, and seeing the text<br>
<br>
                                 { “X3D”: {<br>
<br>
on the first line. So, I’m thinking that the initial test that it is a JSON X3D file goes as follows:<br>
<br>
1)Is the first character a left brace?<br>
<br>
2)Ignoring white space, is the next token the quoted string “X3D”?<br>
<br>
3)Ignoring white space, is the next token a colon?<br>
<br>
4)Ignoring white space, is the next token a left brace?<br>
</blockquote>
<br>
yes to all<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
That is the equivalent of reading the header line. By the way, is it permitted to have white space before the first left brace?<br>
</blockquote>
<br>
yes<br>
<br>
i went ahead and experimented with the Netbeans plugin JS CSS Minify Compress, available via Netbeans/X3D-Edit Tools/Plugins menu and described at<br>
<br>
        <a href="http://plugins.netbeans.org/plugin/49666/js-css-minify-compress" rel="noreferrer" target="_blank">http://plugins.netbeans.org/plugin/49666/js-css-minify-compress</a><br>
<br>
this also showed that getting rid of all intermediate whitespace was OK.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I guess  I just want to know that my thinking is not incorrect – double negative intended.<br>
</blockquote>
<br>
no response   :)<br>
<br>
all the best, Don<br>
-- <br>
Don Brutzman  Naval Postgraduate School, Code USW/Br       <a href="mailto:brutzman@nps.edu" target="_blank">brutzman@nps.edu</a><br>
Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   <a href="tel:%2B1.831.656.2149" value="+18316562149" target="_blank">+1.831.656.2149</a><br>
X3D graphics, virtual worlds, navy robotics <a href="http://faculty.nps.edu/brutzman" rel="noreferrer" target="_blank">http://faculty.nps.edu/brutzman</a><br>
</blockquote></div>
</blockquote></div>
</blockquote></div>