import json record = { "$type": "app.bsky.feed.post", "text": "テスト投稿 from script", "createdAt": "2025-05-26T12:00:00Z" } with open("record.json", "w", encoding="utf-8") as f: json.dump(record, f, ensure_ascii=False, indent=2)