This project comes along with my blog post about three ways to do json validation.
It shows how to use either
- serialization (with Jackson lib);
- json-schema (with networknt or everit lib) or;
- Jpath (with Jayway lib)
to perform json validations.
In order to implement a clean validator unit tests framework, see how the
validateAnInvalidity
unit test is written and read my article above.