Finish export to json.