Camel 3.x Message Filter by JSONPath expression?

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

Camel 3.x Message Filter by JSONPath expression?

Gerald Kallas - mailbox.org
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
Reply | Threaded
Open this post in threaded view
|

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

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