概述
def __init__(self,obj='',json_opts={},mimetype="application/json",*args,**kwargs): content = simplejson.dumps(obj,**json_opts) super(JSONResponse,self).__init__(content,mimetype,**kwargs)
由于simplejson将被弃用,我可以使用它
content = json.dumps(obj,**json_opts)
还是我需要做更多?
总结
以上是编程之家为你收集整理的如何在django python中用json替换simplejson?全部内容,希望文章能够帮你解决如何在django python中用json替换simplejson?所遇到的程序开发问题。
如果您也喜欢它,动动您的小指点个赞吧