Sequence Flow: JSON Condition Expression -> If Json String has empty Array

Hi here,

i have in a variable this Json String as Text:

{"Headline":"This is my Test Headline","category":[]}

Now i want to make an expression to check if “category” is empty ([]). If the value has one or more values, it should not go the upper way accordingly
How can i do this?

Hi @lul,

The below expression should do the job

#{S(myVar).prop("category").elements().isEmpty()}

1 Like