<dependency>
<groupId>org.anc.json</groupId>
<artifactId>validator</artifactId>
<version>${see below}</version>
</dependency>
The LAPPS Grid JSON Schema Validator can be used as a libary in other applications or can be used as a stand-alone program from the command line. Under the hood the JSON validation is done by the json-schema-validator project on GitHub.
The Java library contains two classes of interest:
java -jar jsonv-x.y.z.jar [-j|-a] -s <schema> [-i <instance.]
OPTIONS
-a, --alt schema is specified using alternate syntax.
-h, --help this usage message.
-i, --instance=PARAM json instance to validate.
-j, --json schema is specified in json.
-s, --schema=PARAM schema to use for validation.
-v, --version displays the current version number.