Averages json generated