using the pandas:
json = { "India":"IN", "Sri Lanka":"SL" }
then convert it to JSon array like:
result = [{"name": k, "code": v} for k, v in json.items()]
good luck