Commit 97f034e3 by Pablo Recio

Adds UnicodeJSONRenderer which doesn't ensure ascii

parent c69f9600
......@@ -76,6 +76,10 @@ class JSONRenderer(BaseRenderer):
return json.dumps(data, cls=self.encoder_class, indent=indent, ensure_ascii=self.ensure_ascii)
class UnicodeJSONRenderer(JSONRenderer):
ensure_ascii = False
class JSONPRenderer(JSONRenderer):
"""
Renderer which serializes to json,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment