modify_write_json