wanglingsong / JsonSurfer

A streaming JsonPath processor in Java
MIT License
292 stars 55 forks source link

Runtime error: ANTLR Runtime version 4.7.2 used for parser compilation does not match the current runtime version 4.10.1 #89

Closed dhoffer closed 9 months ago

dhoffer commented 11 months ago

I am trying to learn how to use JsonSurfer but the code below throws this exception. Why? How to resolve?

ANTLR Runtime version 4.7.2 used for parser compilation does not match the current runtime version 4.10.1

` final String json = new ObjectMapper().writeValueAsString(dlDataSourceOnboarding);

    JsonSurfer surfer = new JsonSurfer(JacksonParser.INSTANCE, JacksonProvider.INSTANCE);

    surfer.configBuilder()
            .bind("$[*]", new JsonPathListener() {
                @Override
                public void onValue(Object value, ParsingContext context) {
                    System.out.println(value);
                }
            })
            .buildAndSurf(json);

`