generate JSON from listings