gus-maurizio opened a new issue #2540:
URL: https://github.com/apache/camel-quarkus/issues/2540


   I am trying to create a header as a Map with dictionary elements, to no 
avail. This might be a user error, so apologies if that is the case (and would 
love a hint if this is possible at all).
   ```
           
from("direct:s3dataevent").routeId("AppName.Cloudtrail.CTS3DataEvent")
               .removeHeaders("*")
               .setHeader("data[time]").jsonpath("$.eventTime", false, 
String.class)
               .setHeader("data[actor]").jsonpath("$.sourceIPAddress", false, 
String.class)
               .to("log:s3dataevent?level=INFO&showHeaders=true&showBody=false")
               .end();
   ```
   data[time] and data[actor] become 2 headers (strings) as opposed to data = 
{"time": xxxx, "actor": xxxx}
   


-- 
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to