Make python dict and convert it to JSON

import json

dictionary ={

“id”: “04”,

“name”: “Kavin Kumar”,

“department”: “Engineer”
}

json_object = json.dumps(dictionary, indent = 4)

print(json_object)

2 Likes

very good, keep it up.

1 Like