validate JSON against a schema