public boolean optBoolean(String key){
		LazyNode token=getOptionalFieldToken(key);
		if(token==null)return false;
		if(token.type==LazyNode.VALUE_STRING || token.type==LazyNode.VALUE_ESTRING){
			String str=token.getStringValue().toLowerCase().trim();
			if(str.equals("true"))return true;
			if(str.equals("false"))return false;
			throw new LazyException("Requested value is not a boolean",token);
		}
		// if(token.type==LazyNode.VALUE_NULL)return false;
		if(token.type==LazyNode.VALUE_TRUE)return true;
		// if(token.type==LazyNode.VALUE_FALSE)return false;
		return false;
	}
public boolean optBoolean ( String key ) { LazyNode token = getOptionalFieldToken ( key ) ; if ( token == null ) return false ; if ( token . type == LazyNode . VALUE_STRING || token . type == LazyNode . VALUE_ESTRING ) { String str = token . getStringValue ( ) . toLowerCase ( ) . trim ( ) ; if ( str . equals ( "true" ) ) return true ; if ( str . equals ( "false" ) ) return false ; throw new LazyException ( "Requested value is not a boolean" , token ) ; } if ( token . type == LazyNode . VALUE_TRUE ) return true ; return false ; }
Returns the boolean value stored in this object for the given key.
Returns false if there is no such key.

@param key the name of the field on this object
@return the requested boolean value or false if there was no such key