code: public boolean matchJsonToSchema(JSONObject schema, JSONObject json) throws Exception {
          SchemaLoader.builder()
                   .useDefaults(true)
                   .schemaJson(schema)
                   .build()
                   .load()
                   .build()
                   .validate(json);
          return true;
      }
docs: Check json matches schema
  
  @param schema schema obtained from deploy-api
  @param json json to be checked
  @return boolean whether the json matches the schema or not