我有一个dict,我想使用simplejson转换为JSON.
如何确保我的dict的所有键都是小写的?
{
"DISTANCE": 17.059918745802999,
"name": "Foo Bar",
"Restaurant": {
"name": "Foo Bar",
"full_address": {
"country": "France",
"street": "Foo Bar",
"zip_code": "68190",
"city": "UNGERSHEIM"
},
"phone": "+33.389624300",
"longitude": "7.3064454",
"latitude": "47.8769091",
"id": "538"
},
"price": "",
"composition": "",
"profils": {},
"type_menu": "",
"ID": ""
},
Run Code Online (Sandbox Code Playgroud)
编辑:谢谢大家看看我的问题,对不起,我没有详细解释为什么我想要这个.这是修补JSONEmitter的django-piston.