Export data to json file