Code to generate the price matrix json