You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "ebullient (via GitHub)" <gi...@apache.org> on 2023/02/10 16:28:17 UTC

[GitHub] [camel-quarkus] ebullient commented on issue #4538: Create a `camel-quarkus-support-jackson` extension

ebullient commented on issue #4538:
URL: https://github.com/apache/camel-quarkus/issues/4538#issuecomment-1426050468

   Would this consolidate to reuse/base on the quarkus-jackson extension, too?
   
   I just found that navigating all of this was a mess: 
   
   Two references for Jackson (JSON): 
   - https://camel.apache.org/camel-quarkus/2.16.x/reference/extensions/jackson.html
   - https://camel.apache.org/components/3.14.x/dataformats/json-jackson-dataformat.html
   
   Two references for REST 
   - https://camel.apache.org/components/3.20.x/rest-component.html
   - https://camel.apache.org/camel-quarkus/2.16.x/reference/extensions/rest.html
   
   It was trial and error (a lot of it) for me to figure out whether or not I needed quarkus-jackson, camel-quarkus-jackson, or both. (can I just use quarkus-jackson and camel-quarkus can figure it out? We have conditional extensions.. it can be done).
   
   If Jackson and Rest are around, this also felt weird to have to specify so explicitly (I mean, I have jackson on the path, but not any xml stuff.. so why do I have to specify any of that?)
   ```
           restConfiguration()
               .dataFormatProperty("autoDiscoverObjectMapper", "true")
               .bindingMode(RestBindingMode.json);
   ```
   
   Just bumbled my way into this.. ;)
               


-- 
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-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org