Hi

I have discovered that when using JSONPath in a route, the implementation does 
not use any ObjectMapper registered, it uses it's own.

--------------------------------------------
JacksonMappingProvider.class

public class JacksonMappingProvider implements MappingProvider {

private final ObjectMapper objectMapper;

public JacksonMappingProvider() {
this(new ObjectMapper());
}

public JacksonMappingProvider(ObjectMapper objectMapper) {
this.objectMapper = objectMapper;
}
----------------------------------------------

Is this the intended solution or should we make JSONPath use any globally 
registered mapper as an option?

I have an issue when using JSONPath and my values are numerics and large 
decimal format like 123.456789. They get parsed as Double and then when 
representing the json string they are in scientific notation.
The use of Jackson Features are not available.

When using json as Dataformat we can register a global Objectmapper and use 
that but when using JSONPath it is not implemented.

My Camel version is 3.14.1

/M

Reply via email to