Formatted discounts into a json file.