Forum Discussion
Tanmay_Sarkar
5 years agoNew Contributor III
This expression helped for now:
jsonPath($, “group[*]”).map(item => item.key2).reduce((prev, next) => prev + next)
Mapped this to field “sum” and pushed it into the array.
Is there any other way as well to achieve this?