{
"a": {
"a": "a",
"g": "g",
"b": "b"
}
}
{
"a": {
"a": "asasas",
"b": "b",
"g": "g"
}
}
with open("file.json") as f:
a = json.load(f)
with open("file.json", "w") as f:
a["a"]["a"] = "asasas"
json.dump(info, f, indent=2, ensure_ascii=False)