How to programmatically validate Json string against a Json schema in Java? [closed]

爱⌒轻易说出口 提交于 2019-11-30 10:01:40

问题


I want to validate the format and structure of a JSON object against its JSON schema using Java. Where can I begin?


回答1:


If you're looking for an online tool then you can try jsonschemalint-online-validator

If you need to validate it using Java code then validate-json-against-schema-in-java should help. It provides a step by step approach, along with sample code for reference.



来源:https://stackoverflow.com/questions/35860456/how-to-programmatically-validate-json-string-against-a-json-schema-in-java

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!