[x3d-public] X3D JSON validator now online!
John Carlson
yottzumm at gmail.com
Sat Jul 1 23:47:01 PDT 2023
On Sun, Jul 2, 2023 at 1:15 AM Brutzman, Donald (Don) (CIV) <
brutzman at nps.edu> wrote:
> Worked for me, congrats John.
>
>
>
> Wondering if you are really using JSON Schema, as the header states?
>
JSON draft schema 2020-12, last I checked. Try modifying a url or
url-reference and see what happens! I haven't tested that yet.
>
>
> Good future feature will be passing a url via link, similar to examples.
>
That relies on the server of the link allowing CORS. I tried the
recently mentioned HelloWorldProgramOutput.json link, but it didn't work.
> JSONLint still down tonight, no contact information found on that page.
>
>
>
> -
> https://jsonlint.com/?json=https://X3dGraphics.com/examples/X3dForAdvancedModeling/HelloWorldScenes/HelloWorld.json
>
>
>
for now, we will have to paste in text, maybe pasting in URL into the
textarea might work. Web enthusiasts welcome to make this work...Christoph
V?
John
> all the best, Don
>
> --
>
> Don Brutzman Naval Postgraduate School, Code USW/Br
> brutzman at nps.edu
>
> Watkins 270, MOVES Institute, Monterey CA 93943-5000 USA
> +1.831.656.2149
>
> X3D graphics, virtual worlds, navy robotics
> https://faculty.nps.edu/brutzman
>
>
>
> *From:* x3d-public <x3d-public-bounces at web3d.org> *On Behalf Of *John
> Carlson
> *Sent:* Saturday, July 1, 2023 10:40 PM
> *To:* X3D Graphics public mailing list <x3d-public at web3d.org>
> *Subject:* [x3d-public] X3D JSON validator now online!
>
>
>
> https://coderextreme.net/X3DJSONLD/src/main/html/validator.html
> <https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcoderextreme.net%2FX3DJSONLD%2Fsrc%2Fmain%2Fhtml%2Fvalidator.html&data=05%7C01%7Cbrutzman%40nps.edu%7C1b356241f964443b91d708db7abef699%7C6d936231a51740ea9199f7578963378e%7C0%7C0%7C638238733284488772%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=8paI5zO4yurKCGiL9TBd5MAcd%2FAMqTEQQrs2n%2FfDtBY%3D&reserved=0>
>
>
>
> Now Don doesn't have to use online jsonlint! What you want to do is open
> a JSON file and copy/paste the text into a selected text area on the site,
> overwriting existing JSON.
>
>
>
> You may post in your favorite URL into the text area, and it should
> download with fetch. If you are on localhost or your .json server
> supports CORS.
>
>
>
> =======================================================
>
>
>
> $ git clone https://github.com/coderextreme/X3DJSONLD
> <https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcoderextreme%2FX3DJSONLD&data=05%7C01%7Cbrutzman%40nps.edu%7C1b356241f964443b91d708db7abef699%7C6d936231a51740ea9199f7578963378e%7C0%7C0%7C638238733284488772%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=kwPykeU%2BVNygTQX9OZEp5SyQhz4MWi1Hn45Qb702yIs%3D&reserved=0>
>
>
>
> $ cd X3DJSONLD
>
>
>
> $ jwebserver --port 8001 --bind-address 127.0.0.1 --output verbose
>
> Serving C:\Users\john\X3DJSONLD and subdirectories on 127.0.0.1 port 8001
>
>
>
> URL http://127.0.0.1:8001/src/main/html/validator.html
> <https://nam10.safelinks.protection.outlook.com/?url=http%3A%2F%2F127.0.0.1%3A8001%2Fsrc%2Fmain%2Fhtml%2Fvalidator.html&data=05%7C01%7Cbrutzman%40nps.edu%7C1b356241f964443b91d708db7abef699%7C6d936231a51740ea9199f7578963378e%7C0%7C0%7C638238733284645417%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=hRDISxMQi%2BPkFvHE44Dg0JqC7P7jrV19PBnpLhngOEM%3D&reserved=0>
>
>
>
> I don't recommend the bind-address 0.0.0.0 because it opens your server to
> attack from the local network, if you don't have a firewall.
>
>
>
> Taken from:
> https://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html#CORS
>
>
>
> John
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20230702/407428c2/attachment-0001.html>
More information about the x3d-public
mailing list