remove metrics without values in the json files