tmulle commented on issue #4412: URL: https://github.com/apache/camel-quarkus/issues/4412#issuecomment-1387191991
Thanks for the info, unfortunately it still doesn't appear to be working. I am using the REST DSL and added the properties you mentioned but I still get the same error. It appears that manually creating the `JacksonDataFormat` and changing my marshaling from `.marshal().json` to just `.marshal(df)` as suggested by @djcoleman seems to work and the JSON is rendered. Just wish it would work using the REST DSL.. seems like it should but I see from other Stack Overflow posts people having issues as well using the REST DSL, even with SpringBoot. There are very few posts about Camel and Quarkus. Most results are using SpringBoot. This doesn't work.. **Marshalling** ```from("direct:displayAll").process(this::displayAll).marshal().json();``` **REST DSL config** ``` restConfiguration() .contextPath("/archive") .skipBindingOnErrorCode(true) .enableCORS(true) .dataFormatProperty("prettyPrint", "true") .dataFormatProperty("autoDiscoverObjectMapper", "true") .dataFormatProperty("moduleClassNames", "com.fasterxml.jackson.datatype.jsr310.JavaTimeModule"); ``` But this does work: **REST DSL Config** ``` restConfiguration() .contextPath("/archive") .enableCORS(true); ``` **Marshalling** ```from("direct:displayAll").process(this::displayAll).marshal(df);``` **Manually Creating the JacksonDataFormat** ``` JacksonDataFormat df = new JacksonDataFormat(); df.setModuleClassNames("com.fasterxml.jackson.datatype.jsr310.JavaTimeModule"); df.setAutoDiscoverObjectMapper(true); ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org