This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push: new d6a0caba290 camel-jq: Update docs d6a0caba290 is described below commit d6a0caba29077c1fe7c7147d91370d2fac584ae5 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Thu Nov 23 19:18:17 2023 +0100 camel-jq: Update docs --- components/camel-jq/src/main/docs/jq-language.adoc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/components/camel-jq/src/main/docs/jq-language.adoc b/components/camel-jq/src/main/docs/jq-language.adoc index 16e832ef5d6..ea0f33a0633 100644 --- a/components/camel-jq/src/main/docs/jq-language.adoc +++ b/components/camel-jq/src/main/docs/jq-language.adoc @@ -60,6 +60,7 @@ from("direct:start") The camel-jq adds the following functions: * `header` - Allow to access the Message header in a JQ expression. +* `property` - Allow to access the Exchange property in a JQ expression. For example, to set the property foo with the value from the Message header `MyHeader': @@ -71,6 +72,15 @@ from("direct:start") .to("mock:result"); ---- +Or from the exchange property: + +[source, java] +---- +from("direct:start") + .transform() + .jq(".foo = property(\"MyProperty\")") + .to("mock:result"); +---- == Dependencies