问题
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