code: function parse(any, opts) {
    var schema;
    if (typeof any == 'string') {
      try {
        schema = JSON.parse(any);
      } catch (err) {
        schema = any;
      }
    } else {
      schema = any;
    }
    return types.Type.forSchema(schema, opts);
  }
docs: Basic parse method, only supporting JSON parsing.