You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Gerald Kallas <ca...@mailbox.org> on 2020/04/06 10:08:27 UTC

Camel 3.x Message Filter by JSONPath expression?

Dear community,

is it possible to filter a message by JSONPath als the following snippet?

			<filter>
				<jsonpath>$.names</jsonpath>
			</filter>

Many thanks in advance
- Gerald

Re: Camel 3.x Message Filter by JSONPath expression?

Posted by Gerald Kallas <ca...@mailbox.org>.
Found it ..

			...
			<filter>
				<jsonpath suppressExceptions="true">$.surnames</jsonpath>
				<to uri="direct:link"/>
			</filter>
		</route>

		<route>
			<from uri="direct:link"/>
			<log message="filtered"/>
		</route>

> Gerald Kallas <ca...@mailbox.org> hat am 6. April 2020 12:08 geschrieben:
> 
>  
> Dear community,
> 
> is it possible to filter a message by JSONPath als the following snippet?
> 
> 			<filter>
> 				<jsonpath>$.names</jsonpath>
> 			</filter>
> 
> Many thanks in advance
> - Gerald