Sorry, it appears my code snippet was not shown in the original message: Here it is:
.choice() .when().jsonpath("$.table[?(@.rows size 0)]") <<<-- I need to negate HERE!!! or something like size > 0 .log("rows returned: " + simple("${body}")) .otherwise() .log("no rows returned!!!") .endChoice() ________________________ Rafael Torres Coelho Soares On Wed, Mar 22, 2017 at 12:17 PM, rafaeltuelho <rafael...@gmail.com> wrote: > Hi. > > How can I negate a Jsonpath expression in when() clause? > > Actually I need to test if a returned json body has a given array not > empty... I coulnd not find a valid JSON expression to do this... > > I'm using this: > > > > > > > > -- > View this message in context: http://camel.465427.n5.nabble. > com/jsonpath-expressions-in-when-clause-tp5795865.html > Sent from the Camel - Users mailing list archive at Nabble.com. >