#!/usr/bin/env python
import json
import sys
if __name__ == "__main__":
input_file = sys.argv[1]
output_file = sys.argv[2]
try:
with open(input_file, 'r', encoding='utf-8') as f:
input_data = json.load(f)
content = input_data["content"]
content = content.replace("1", "2")
with open(output_file, 'w', encoding='utf-8') as f:
json.dump({"content": content}, f, ensure_ascii=False, indent=4)
except Exception as e:
print(f"Error: {str(e)}")
sys.exit(1)