我有Django版本1.7和Python版本2.7.5 -我使用pip install simplejson和apt-get install python-simplejson命令来解决这个问题,但它仍然显示了这个异常extdirect.django-0.3-py2.7.egg/extdirect/django/providers.py", line 4, in <module>
from django.utils import simplejsonImportError: can
我用simplejson转换python,但是我想为一些已定义的键定制输出。JsonSpecialKey(object): self.data = data
return simplejson.JSONEncoder.default(self, obj)
d = {'testKey':JsonSpeci