Index: django/core/serializers/json.py
===================================================================
--- django/core/serializers/json.py	(révision 12835)
+++ django/core/serializers/json.py	(copie de travail)
@@ -25,6 +25,12 @@
         self.options.pop('stream', None)
         self.options.pop('fields', None)
         self.options.pop('use_natural_keys', None)
+        if self.options.get('indent', None):
+            # The default is (', ', ': ').  To eliminate useless whitespaces
+            # after comma, the representation is changed to (',', ': ') only
+            # if indent is used
+            self.options['separators'] = (',', ': ')
+
         simplejson.dump(self.objects, self.stream, cls=DjangoJSONEncoder, **self.options)
 
     def getvalue(self):
Index: django/core/management/commands/dumpdata.py
===================================================================
--- django/core/management/commands/dumpdata.py	(révision 12835)
+++ django/core/management/commands/dumpdata.py	(copie de travail)
@@ -24,13 +24,13 @@
     args = '[appname ...]'
 
     def handle(self, *app_labels, **options):
-        from django.db.models import get_app, get_apps, get_models, get_model
+        from django.db.models import get_app, get_apps, get_model
 
-        format = options.get('format','json')
-        indent = options.get('indent',None)
+        format = options.get('format', 'json')
+        indent = options.get('indent', None)
         using = options.get('database', DEFAULT_DB_ALIAS)
         connection = connections[using]
-        exclude = options.get('exclude',[])
+        exclude = options.get('exclude', [])
         show_traceback = options.get('traceback', False)
         use_natural_keys = options.get('use_natural_keys', False)
 
