added json to buy output