Konversi objek Python seperti dikt, daftar, dll ke objek JSON

# convert a python object like dict, list, etc to a json object
import json 
data = {
    "id": "123",
    "name": "John Doe",
    "occupation": "Farmer"
} 
json_object = json.dumps(data, indent = 4)
print(json_object)
Impossible Impala