Include write op when generating json file.