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