Konwertuj obiekt Pythona i przechowuj go w pliku JSON w systemie lokalnym

# convert a python object and store it in a JSON file in the local system
import json
data = {
    "id": "123",
    "name": "John Doe",
    "occupation": "Farmer"
}
with open("output_file.json", "w") as file:
    json.dump(data, file)
Impossible Impala