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

22,034

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.

Share:
22,034
santro
Author by

santro

Updated on July 16, 2022

Comments

  • santro
    santro almost 2 years

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

  • João Matos
    João Matos about 3 years
    the validate-json-against-schema-in-java link is broken
  • Kishore Bandi
    Kishore Bandi about 3 years
    @JoãoMatos Seems to be working. I just opened it.