action to save treemap as json file