Problem Incorporating json schema validator in my code

279 views
Skip to first unread message

sha p

unread,
Mar 10, 2015, 1:56:05 AM3/10/15
to json-schem...@googlegroups.com
Hi all,
   I have a requirement where I need to validate the content of the json file. For that I am looking for a suitable jars/libraries to incorporate in my code.
Fortunately I found https://github.com/fge/json-schema-validator code on the GitHub.

While I download and set up the same code in my local MyEclipse it is giving a lot of compilation errors.
Do I need to add any libraries or jars ? if so which version and where can I found them ?

Please help me.
Its my research project I need to work on the content specific validation of json file , not sure how to go about it.
Any guidance in this direction would be a great help for me.


Thank you.
~Shyam

Lang Marius

unread,
Mar 10, 2015, 10:35:45 AM3/10/15
to json-schem...@googlegroups.com
Hi Shyam,

I am using the validator for my research project too. I use this jar and added some additional jars that where missing just by working myself through all the compiling errors that appeared because of missing classes. Just google the missing class to find the necessary jars. (Unfortunately I don't remember the whole list of jars needed)

Hope I could help!
Marius

Clemens Uhlenhut

unread,
Mar 10, 2015, 6:01:22 PM3/10/15
to json-schem...@googlegroups.com
Hi Shyam,

I use this jar below for the JSON schema functionalities of my editor which already contains all dependencies:

This package is also linked from the github project page.

Regards
Clemens



Am Dienstag, 10. März 2015 06:56:05 UTC+1 schrieb sha p:

sha p

unread,
Mar 11, 2015, 1:55:57 AM3/11/15
to json-schem...@googlegroups.com
Thanks a lot Clemens,
   Yeah I got latest jar below it resolved all the missing classes errors.

Thank you for your help.
~Shyam

sha p

unread,
Mar 11, 2015, 1:55:57 AM3/11/15
to json-schem...@googlegroups.com
Hi All ,
  I have the real question here , where I need your suggestions or guidance.
I need to validate the content of the json file.

Here are the steps I am planning to follow
1) Get the actual json file in which the content needs to be validated.
2) Generate respective json schema ( need help here too , are there any Java APIs/Jars/Libs to do it )
3) Using validator jar , json file need to be validated using schema.( this is done with your help ).
4) Now validate the content (data) of json file accordingly business logic ( Here is what I need your real guidance or help or suggestions) , Not sure how to do it ? what is the best approach ? Are there any frameworks around it ?


Please help me in this regard.
Thank you.
~Shyam

sha p

unread,
Mar 11, 2015, 1:55:57 AM3/11/15
to json-schem...@googlegroups.com
Thanks a lot Marius,
   Yeah I got latest jar from Clemens below it resolved all the missing classes errors.

Thank you for your clue and time.
~Shyam

Clemens Uhlenhut

unread,
Mar 11, 2015, 1:30:03 PM3/11/15
to json-schem...@googlegroups.com
The basics are actually described here:

Did you already try to execute the examples in your Java development environment?

Regards
Clemens
Reply all
Reply to author
Forward
0 new messages