Hi Ah okay that sounds like a good improvement. You are welcome to create a JIRA.
On Wed, Apr 13, 2022 at 6:35 AM Mikael Andersson Wigander <mikael.andersson.wigan...@pm.me.invalid> wrote: > > 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 -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2