add group number to json