Forum Discussion

SK07's avatar
SK07
Contributor
7 years ago

Groovy- count all nulls in an array

I want to print  how many nulls, 1's and 2's seperately. Json : {"prods": [{"Item":13,"rate":200, "Ids": []}, {"Item":13,"rate":200, "Ids": []},  {"Item":11,"rate": 100, "Ids": [ {"level": 1}]},  ...