etc/browser/avsc-types.js
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);
}
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);
}
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 ) ; }
Basic parse method, only supporting JSON parsing.
Basic parse method only supporting JSON parsing .