You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The PathNode->Evaluate() func builds configuration without using the passed in ctx->mappingProvider.
It leads the configuration to fallback to default mappingProvider. This doesn't seem to cause any issue when used with Jackson providers but with Gson it leads to use Jackson Mapping provider if defaults are not set statically.
Configuration c = Configuration.builder().jsonProvider(ctx.configuration().jsonProvider()).mappingProvider(ctx.configuration().mappingProvider()).options(Option.REQUIRE_PROPERTIES).build();
NOTE:
This is a problem when json-smart is completely excluded and Gson is used as the sole provider and mapper.
The text was updated successfully, but these errors were encountered:
…lso related to json-path#682, json-path#676, json-path#513, json-path#252)
* Replace hard-coded json-smart parser with one retrieved from context (where available) or default configuration.
* This enables a project to _exclude_ the transitive json-smart dependency when setting an alternative default configuration.
The PathNode->Evaluate() func builds configuration without using the passed in
ctx->mappingProvider
.It leads the configuration to fallback to default mappingProvider. This doesn't seem to cause any issue when used with Jackson providers but with Gson it leads to use Jackson Mapping provider if defaults are not set statically.
Solution:
Replace
JsonPath/json-path/src/main/java/com/jayway/jsonpath/internal/filter/ValueNodes.java
Line 627 in 1ed1ea0
with
NOTE:
This is a problem when json-smart is completely excluded and Gson is used as the sole provider and mapper.
The text was updated successfully, but these errors were encountered: