You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2021/02/22 08:39:10 UTC

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

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:
users@infra.apache.org



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

Posted by GitBox <gi...@apache.org>.
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:
users@infra.apache.org