modified dump_json