How to validate the JSON response with expected JSON schema

I am using everit’s Json validator for this purpose:

I will provide a working example a bit later when I will be at the PC where I have the code.

Alternate, java-json-tools and jackson can be used, but I prefer the first one, makes the code simpler and has support for draft06 and draft07 in addition to draft04 schema.