metric conversion in json