Questions tagged [camel-jackson]

8 questions
6
votes
1 answer

Why autoDiscoverObjectMapper is false by default in camel-jackson-starter?

Currently we are migrating our applications from Camel 2.x to Camel 3.x and faced an issue that JacksonDataFormat is not using an ObjectMapper from the application context by default anymore. Instead you need to provide a property…
3
votes
2 answers

Apache-camel: How to process a json object (sent by curl) into headers?

I have a springboot application with apache camel. In it I have a camel-context. I am trying to send json through curl with a key pair value and processing it through a route. Sending the data: curl --header "Content-Type: application/json" -X POST…
DevelopperX
  • 85
  • 1
  • 2
  • 9
2
votes
1 answer

Remove null and empty objects in nested classes during serialization with Jackson and Lombok

I'm trying to remove both null attributes and empty objects from a complex object during serialization using Camel-Jackson and Lombok. I checked this answer and it works, but they're accessing to the attributes directly without using getters or…
Joselo
  • 127
  • 1
  • 10
1
vote
1 answer

What is the replacement of setDataFormatResolver for ExtendedCamelContext?

With Apache Camel on 3.20 version I used to use the setDataFormatResolver method, which was from ExtendedCamelContext, to set a custom data format in CamelContext. But since 4.0.0-M3 version, this method has been removed from the class. I'm…
1
vote
1 answer

Apache Camel jackson unmarshaller dont work

Im using camel and jackson for unmarshalling string with json {"GUID":"123"} ... .unmarshal().json(JsonLibrary.Jackson, TestPojo.class) And hava pojo TestPojo { @JsonProperty("GUID) private String guid; @JsonProperty("GUID") …
1
vote
1 answer

Prevent camel-jackson from removing quotation marks

I am working on a camel route for a REST service. My task is to add a POST in which I need to take a token out of the json that is sent. I am doing the following: .unmarshal().json(JsonLibrary.Jackson, Token.class) I added the "camel-jackson"…
Norman Skinner
  • 6,729
  • 1
  • 19
  • 22
0
votes
2 answers

Enable EMPTY_ELEMENT_AS_NULL in Camel 3 XML DSL

I've found here that the default behaviour for FromXmlParser.Feature.EMPTY_ELEMENT_AS_NULL has changed from true (2.9 - 2.11) to false (2.12 onwards), so from that version no automatic coercion is done from empty elements like into null. I was…
Joselo
  • 127
  • 1
  • 10
0
votes
1 answer

Camel Java DSL: Update the next polling request param using the value from the response

I am new to Apache camel, this is what I am trying to figure out. In a sample code below, I am trying to use the property - "value" in the request param in next polling request. String valueFromTheResponse= "" m.addRouteBuilder(new RouteBuilder()…
fenrigne123
  • 593
  • 1
  • 4
  • 9