[x3d-public] JSON validation

Andreas Plesch andreasplesch at gmail.com
Thu Feb 16 13:25:44 PST 2017


Great. At some point it may be possible to avoid jsonlint.com and integrate
into web3d.org using

https://github.com/circlecell/jsonlintdotcom

The validation apparently happens on the client browser anyways using
javascript https://github.com/zaach/jsonlint


Another validation service:

https://jsonformatter.curiousconcept.com/#http%3A%2F%2Fwww.web3d.org%2Fx3d%2Fcontent%2Fexamples%2FBasic%2Fdevelopment%2FSchemaTest.json

-Andreas


On Thu, Feb 16, 2017 at 2:19 PM, Don Brutzman <brutzman at nps.edu> wrote:

> Perfect, thanks Andreas!  I will incorporate that feature in the next
> revision of example archives.  8)
>
> On 2/15/2017 8:33 PM, Andreas Plesch wrote:
>
>> If just the JSON itself needs to be validated, jsonlint already accepts
>> URLs as a parameter:
>>
>> http://jsonlint.com/?json=http%3A%2F%2Fwww.web3d.org%2Fx3d%
>> 2Fcontent%2Fexamples%2FBasic%2Fdevelopment%2FSchemaTest.json
>>
>> leads to a validation. Might be useful for trickier cases (escaping,
>> quoting ..) . The colon and forward slashes should be easy to replace in
>> any example URL.
>>
>> This of course does not take into account a x3d schema.
>>
>> Andreas
>>
>> On Feb 15, 2017 9:06 PM, <x3d-public-
>>
>>     Date: Wed, 15 Feb 2017 17:31:50 -0800
>>     From: Don Brutzman <brutzman at nps.edu <mailto:brutzman at nps.edu>>
>>     To: <yottzumm at gmail.com <mailto:yottzumm at gmail.com>>
>>     Cc: X3D Graphics public mailing list <x3d-public at web3d.org <mailto:
>> x3d-public at web3d.org>>
>>     Subject: Re: [x3d-public] ClassCastException in X3DJSAIL. Probably
>>             okay, since it's a test program.
>>     Message-ID: <bb83585f-9890-9871-8c3b-de990f24ca7d at nps.edu <mailto:
>> bb83585f-9890-9871-8c3b-de990f24ca7d at nps.edu>>
>>     Content-Type: text/plain; charset="utf-8"; format=flowed
>>
>>     ... mm, can you figure out a way to link a scene url into a json
>> validator url?  for example, something that combines
>>
>>             http://jsonlint.com/
>>     with
>>             http://www.web3d.org/x3d/content/examples/Basic/development/
>> SchemaTest.json <http://www.web3d.org/x3d/cont
>> ent/examples/Basic/development/SchemaTest.json>
>>
>>     if so, i can add such validation-convenience links to each index page
>> in the archives...
>>
>>
>>
-- 
Andreas Plesch
39 Barbara Rd.
Waltham, MA 02453
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170216/62b19ffa/attachment.html>


More information about the x3d-public mailing list