Description
Hey there,
To try and work around issue #5791, where I was trying to flatten Avro messages containing objects that are present in only some objects I attempted to use a JSONPath conditional.
Example
$.[?(@.maybe_object)].maybe_object.my_key
However this results in the following exception
Caused by: java.lang.NoClassDefFoundError: net/minidev/json/writer/JsonReaderI at com.jayway.jsonpath.internal.DefaultsImpl.<init>(DefaultsImpl.java:17) ~[json-path-2.1.0.jar:2.1.0] at com.jayway.jsonpath.internal.DefaultsImpl.<clinit>(DefaultsImpl.java:15) ~[json-path-2.1.0.jar:2.1.0] at com.jayway.jsonpath.Configuration.getEffectiveDefaults(Configuration.java:48) ~[json-path-2.1.0.jar:2.1.0] at com.jayway.jsonpath.Configuration.access$000(Configuration.java:34) ~[json-path-2.1.0.jar:2.1.0] at com.jayway.jsonpath.Configuration$ConfigurationBuilder.build(Configuration.java:229) ~[json-path-2.1.0.jar:2.1.0] at com.jayway.jsonpath.internal.filter.ValueNode$PathNode.evaluate(ValueNode.java:778) ~[json-path-2.1.0.jar:2.1.0] at com.jayway.jsonpath.internal.filter.RelationalExpressionNode.apply(RelationalExpressionNode.java:37) ~[json-path-
When using the code above following code is called: https://github.com/json-path/JsonPath/blob/6c738c9aa2ca6023c6d8b4e63b9f43e7110bbb2e/json-path/src/main/java/com/jayway/jsonpath/internal/filter/ValueNode.java#L820
This attempts to setup some configuration which fails as we exclude the json-smart dependency.