generate summary and export it to json