Validating Null Values of a JSON Message in Camel
Issue
- The example given for using JSonPath in http://camel.apache.org/jsonpath.html does not work as expected. For example, the following syntax does not filter the books according to their prices:
<jsonpath>$.store.book[?(@.price < 10)]</jsonpath>
- I want to validate if the value of an element in a JSON message is null. Please provide the syntax that can be used in a Camel route for validating null elements.
Environment
- Red Hat JBoss Fuse
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
