Added option to export json