I am having a json object,
{"jsonObj":{"ageArray":[{"age":25},{"age":20},{"age":26}]}}
I want only those objects from “ageArray”, whose “age” value is greater than 22, with spin camunda expression.
I am using something like
${S(jsonObj).prop("ageArray").elements().stream().filter(x->x.prop("age").value()>22)..collect(Collectors.toList())}
But I am getting a syntax error as
Error parsing '${S(jsonObj).prop("ageArray").elements().stream().filter(x->x.prop("age").value()>22)..collect(Collectors.toList())}': syntax error at position 59, encountered '>', expected <IDENTIFIER>|<STRING>|<FLOAT>|<INTEGER>|'true'|'false'|'null'|'-'|'!'|'not'|'empty'|'('