json.dumps在默认情况下,对于非ascii字符生成的是相对应的字符编码,而非原始字符,只需要
1 #coding=utf8 2 import json 3 js = json.loads('{"u6728u6613u67d0u95f2u4eba":"中国"}') 4 print json.dumps(js) 5 print json.dumps(js,ensure_ascii=False)