to visualize the purchases on treasures added json support.(c((generated nested JSON is not sufficient for the d3 viz)