Changeset 3795
- Timestamp:
- 09/22/06 08:26:07 (2 years ago)
- Files:
-
- django/trunk/AUTHORS (modified) (1 diff)
- django/trunk/django/core/serializers/json.py (modified) (1 diff)
- django/trunk/docs/serialization.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/AUTHORS
r3794 r3795 113 113 Robin Munn <http://www.geekforgod.com/> 114 114 Nebojša Dorđević 115 nesh 115 116 Sam Newman <http://www.magpiebrain.com/> 116 117 Neal Norwitz <nnorwitz@google.com> django/trunk/django/core/serializers/json.py
r3671 r3795 17 17 """ 18 18 def end_serialization(self): 19 simplejson.dump(self.objects, self.stream, cls=DateTimeAwareJSONEncoder )19 simplejson.dump(self.objects, self.stream, cls=DateTimeAwareJSONEncoder, **self.options) 20 20 21 21 def getvalue(self): django/trunk/docs/serialization.txt
r3237 r3795 97 97 .. _simplejson: http://undefined.org/python/#simplejson 98 98 99 Notes For Specific Serialization Formats 100 ---------------------------------------- 101 102 json 103 ~~~~ 104 105 If you are using UTF-8 (or any other non-ASCII encoding) data with the JSON 106 serializer, you must pass ``ensure_ascii=False`` as a parameter to the 107 ``serialize()`` call. Otherwise the output will not be encoded correctly. 108 109 For example:: 110 111 json_serializer = serializers.get_serializer("json") 112 json_serializer.serialize(queryset, ensure_ascii=False, stream=response) 113 99 114 Writing custom serializers 100 115 ``````````````````````````
