public boolean ok() {
        Object okValue = get("ok");
        if (okValue instanceof Boolean) {
            return (Boolean) okValue;
        } else if (okValue instanceof Number) {
            return ((Number) okValue).intValue() == 1;
        } else {
            return false;
        }
    }
public boolean ok() {
        Object okValue = get("ok");
        if (okValue instanceof Boolean) {
            return (Boolean) okValue;
        } else if (okValue instanceof Number) {
            return ((Number) okValue).intValue() == 1;
        } else {
            return false;
        }
    }
public boolean ok ( ) { Object okValue = get ( "ok" ) ; if ( okValue instanceof Boolean ) { return ( Boolean ) okValue ; } else if ( okValue instanceof Number ) { return ( ( Number ) okValue ) . intValue ( ) == 1 ; } else { return false ; } }
Gets the "ok" field, which is whether this command executed correctly or not.

@return true if the command executed without error.
Gets the ok field which is whether this command executed correctly or not .