<div><div dir="auto">Hmm, currently using jsonlint to check sanity and format.</div><div dir="auto"><br></div><div dir="auto">John</div></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jun 7, 2020 at 2:04 PM Don Brutzman <<a href="mailto:brutzman@nps.edu">brutzman@nps.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">You probably know the following but may find it useful to cross check.<br>
<br>
* X3D Regular Expressions (regexes)<br>
<a href="https://www.web3d.org/specifications/X3dRegularExpressions.html" rel="noreferrer" target="_blank">https://www.web3d.org/specifications/X3dRegularExpressions.html</a><br>
<br>
These are XML regular expressions. Primary differences would be separators, note that these forbid intermediate commas within Vec2f/Vec3f/Color/Orientation/etc. values since that can mask flaws that are difficult to debug in very long arrays.<br>
<br>
Wondering if you had considered normalizing or minifying JSON before applying regex, or simply have regex handle that.<br>
<br>
On 6/7/2020 4:24 AM, John Carlson wrote:<br>
> Now basing patterns on this:<br>
> <br>
> <a href="https://json-schema.org/understanding-json-schema/reference/regular_expressions.html" rel="noreferrer" target="_blank">https://json-schema.org/understanding-json-schema/reference/regular_expressions.html</a><br>
> <br>
> Thanks,<br>
> <br>
> John<br>
> <br>
> On Sun, Jun 7, 2020 at 6:17 AM John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a> <mailto:<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>>> wrote:<br>
> <br>
> If someone finds a better way to encoding patterns, great. Here is the V4 X3D JSON schema attached zipped.<br>
> <br>
> On Sun, Jun 7, 2020 at 6:13 AM John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a> <mailto:<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>>> wrote:<br>
> <br>
> Archive pattern errors in x3d resources archives JSON files.<br>
> <br>
> I think many of these are erroneous, if not all of them.<br>
> <br>
> Attached, gzipped.<br>
> <br>
> On Sun, Jun 7, 2020 at 6:08 AM John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a> <mailto:<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>>> wrote:<br>
> <br>
> I used two types of patterns, one beginning with / and ending with /, and another beginning with ^ and ending with %. The / version found more errors on my X3DJSONLD files. The other patterns seemed to find other JSON errors.<br>
> <br>
> I will next produce the x3d resource examples with the /.../ patterns.<br>
> <br>
> John<br>
> <br>
> <br>
> _______________________________________________<br>
> x3d-public mailing list<br>
> <a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a><br>
> <a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org" rel="noreferrer" target="_blank">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a><br>
> <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 +1.831.656.2149<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></div>