public void parse(String string){
  if (string == null) {
    throw new NullPointerException("string is null");
  }
  int bufferSize=Math.max(MIN_BUFFER_SIZE,Math.min(DEFAULT_BUFFER_SIZE,string.length()));
  try {
    parse(new StringReader(string),bufferSize);
  }
 catch (  IOException exception) {
    throw new RuntimeException(exception);
  }
}

public void parse ( String string ) { if ( string == null ) { throw new NullPointerException ( "string is null" ) ; } int bufferSize = Math . max ( MIN_BUFFER_SIZE , Math . min ( DEFAULT_BUFFER_SIZE , string . length ( ) ) ) ; try { parse ( new StringReader ( string ) , bufferSize ) ; } catch ( IOException exception ) { throw new RuntimeException ( exception ) ; } }
parses the given input string . the input must contain a valid json value , optionally padded with whitespace .
