[GitHub] [camel-kafka-connector] omarsmak opened a new issue #1046: Add a SMT/Converter to convert JSON to Map in the Core

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[GitHub] [camel-kafka-connector] omarsmak opened a new issue #1046: Add a SMT/Converter to convert JSON to Map in the Core

GitBox

omarsmak opened a new issue #1046:
URL: https://github.com/apache/camel-kafka-connector/issues/1046


   There are components/connectors that need the message body to be in form of Map, for example Camel Stitch, Camel SQL .. etc. Hence if you have a JSON data message from Kafka, e.g:
   ```
   {
       "name" : "joe doe",
       "id": 12
   }
   ```
   The SMT should be able to convert this to Map datatype. e.g:
   ```
   map.get("name");
   map.get("id");
   ```


----------------------------------------------------------------
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:
[hidden email]


Reply | Threaded
Open this post in threaded view
|

[GitHub] [camel-kafka-connector] omarsmak commented on issue #1046: Add a SMT/Converter to convert JSON to Map in the Core

GitBox

omarsmak commented on issue #1046:
URL: https://github.com/apache/camel-kafka-connector/issues/1046#issuecomment-784015495


   It is not necessary, the JsonConverter can do this, however we need to convert the Struct to map  


----------------------------------------------------------------
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:
[hidden email]