• Post Reply Bookmark Topic Watch Topic
  • New Topic

Json string validation against json schema in Java  RSS feed

 
Ravish Srivastava
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have to validate a json string coming as input request to a method against json schema. if validation is successful then i will pass this json string to a thread which will parse the string and insert into the DB.

Please guide me, how to validate the incoming json string against the json schema in java.

Thanks
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A quick search for "validating json in java against schema" found http://stackoverflow.com/questions/14511468/java-android-validate-string-json-against-string-schema, which looks promising.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!