presto-main/src/main/java/io/prestosql/operator/scalar/JsonPathTokenizer.java/JsonPathTokenizer/match
class JsonPathTokenizer:    private void match(char expected)
    {
        if (!tryMatch(expected)) {
            throw invalidJsonPath();
        }
    }