Validating Null Values of a JSON Message in Camel

Solution Unverified - Updated -

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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content