Camel jsonpath to validate null or empty of an array.

Solution Verified - Updated -

Issue

Validate If the value of an element in a JSON message is null in the array. Please provide the syntax that can be used in a Camel route for validating null elements of an array.

{
                 "ResponseCode": 1,
                 "ErrorCode": 0,
                 "Result": [0]
}

Validate whether an array of "Result" is null or empty.

Environment

Red Hat Fuse

7.3.0

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