[tor-commits] [collector/release] Use metrics-lib's JSON handling classes.