presto-main/src/main/java/io/prestosql/operator/scalar/JsonPathTokenizer.java/JsonPathTokenizer/tryMatch
class JsonPathTokenizer:    private boolean tryMatch(char expected)
    {
        if (!hasNextCharacter() || peekCharacter() != expected) {
            return false;
        }
        index++;
        return true;
    }