public Schema loadSchema(String schema) {
    try {
      JSONObject rawSchema = new JSONObject(new JSONTokener(schema));
      return SchemaLoader.load(rawSchema);
    } catch (JSONException | SchemaException e) {
      throw new InvalidJsonSchemaException(e);
    }
  }
public Schema loadSchema ( String schema ) { try { JSONObject rawSchema = new JSONObject ( new JSONTokener ( schema ) ) ; return SchemaLoader . load ( rawSchema ) ; } catch ( JSONException | SchemaException e ) { throw new InvalidJsonSchemaException ( e ) ; } }
Loads JSON schema. The schema may contain remote references.

@param schema String containing the JSON schema to load
@return loaded {@link Schema}
@throws InvalidJsonSchemaException if the schema fails to load