format json for pricing