Last group in asset listing keyword

Matrix Version:5.5.2.2

Hello,

Just wondering if theres a similar keyword to “%asset_is_last%” but for groups, this one doesn’t seem to work the same? I’m printing JSON and need to check if its the last group to not print a ‘,’.

Is there any other ways this could be achieved if a keyword doesn’t exist.

Cheers,
Grant