Couldn't able to extract value from JSON if the key starts with special character '#' #1103
-
I couldn't able to extract "#text" property value using with ${jq(.#text)} Is there any alternative solution for this? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
that is a bad style to use # in key names. Is there a specific case why you do that |
Beta Was this translation helpful? Give feedback.
-
Also this is not karavan specific but general JQ and Camel |
Beta Was this translation helpful? Give feedback.
-
There is likely a little bug in Camel 4.3 that removes the double quotes |
Beta Was this translation helpful? Give feedback.
-
And btw with camel-jbang you can experiment with message transformation from a CLI / terminal I put your sample data into file
You can run this in There are also videos on youtube about this. |
Beta Was this translation helpful? Give feedback.
Okay with this fix, then it works with double quotes. So you would need Camel 4.4 when its released.