This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 7d5f94dc3af33b402386f2a9d0522f3710a5571c
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Thu May 6 13:31:13 2021 +0200

    Switch to JSONNode as intermediate representation in transformations - 
Insert Field
---
 insert-field-action.kamelet.yaml | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/insert-field-action.kamelet.yaml b/insert-field-action.kamelet.yaml
index c1dcf4a..4108731 100644
--- a/insert-field-action.kamelet.yaml
+++ b/insert-field-action.kamelet.yaml
@@ -36,7 +36,9 @@ spec:
           - simple: "${header[Content-Type]} == 'application/json'"
             steps:
             - unmarshal:
-                json: {}
+                json: 
+                  library: Jackson
+                  unmarshalTypeName: com.fasterxml.jackson.databind.JsonNode
       - set-property:
           name: "field"
           constant: "{{field}}"
@@ -45,7 +47,9 @@ spec:
           constant: "{{value}}"
       - bean: "org.apache.camel.kamelets.utils.transform.InsertField"
       - marshal:
-          json: {}
+          json: 
+            library: Jackson
+            unmarshalTypeName: com.fasterxml.jackson.databind.JsonNode
       - set-header:
           name: "Content-Type"
           constant: "application/json"

Reply via email to