stop json infinite recursion for groups, supporting listing parent and child groups