Fixed a save bug in json_filter

- Fixed the save bug in json_filter which used to corrupt the jsons on consecutive runs.