[x3d-public] X3D JSON validator now online!
Brutzman, Donald (Don) (CIV)
brutzman at nps.edu
Sat Jul 1 23:15:05 PDT 2023
Worked for me, congrats John.
Wondering if you are really using JSON Schema, as the header states?
Good future feature will be passing a url via link, similar to examples.
JSONLint still down tonight, no contact information found on that page.
*
https://jsonlint.com/?json=https://X3dGraphics.com/examples/X3dForAdvancedMo
deling/HelloWorldScenes/HelloWorld.json
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%2Fcoderextr
eme.net%2FX3DJSONLD%2Fsrc%2Fmain%2Fhtml%2Fvalidator.html&data=05%7C01%7Cbrut
zman%40nps.edu%7C1b356241f964443b91d708db7abef699%7C6d936231a51740ea9199f757
8963378e%7C0%7C0%7C638238733284488772%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLj
AwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=8
paI5zO4yurKCGiL9TBd5MAcd%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.co
m%2Fcoderextreme%2FX3DJSONLD&data=05%7C01%7Cbrutzman%40nps.edu%7C1b356241f96
4443b91d708db7abef699%7C6d936231a51740ea9199f7578963378e%7C0%7C0%7C638238733
284488772%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTi
I6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=kwPykeU%2BVNygTQX9OZEp5SyQhz4
MWi1Hn45Qb702yIs%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.ed
u%7C1b356241f964443b91d708db7abef699%7C6d936231a51740ea9199f7578963378e%7C0%
7C0%7C638238733284645417%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjo
iV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=hRDISxMQi%2BPk
FvHE44Dg0JqC7P7jrV19PBnpLhngOEM%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/6ff8a0a0/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5464 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20230702/6ff8a0a0/attachment-0001.p7s>
More information about the x3d-public
mailing list