fix json in group metrics