PythonKopierenimport json from pathlib import Path pfad = Path("daten.json") with pfad.open("r", encoding="utf-8") as f: daten = json.load(f) daten["bearbeitet"] = True with pfad.open("w", encoding="utf-8") as f: json.dump(daten, f, ensure_ascii=False, indent=2)Hinweis: Verwendet nur die Python-Standardbibliothek.PythonJSONDatei← Zur CodebibliothekUnterstützung anfragen