Amaury Forgeot d'Arc <amaur...@gmail.com> added the comment: The C encoder should not be used when indent=0. Here is a patch+test for 2.7. Note that json.dump (into a file object) already correctly emit newlines.
---------- keywords: +patch nosy: +amaury.forgeotdarc Added file: http://bugs.python.org/file19124/json_indent0.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue10019> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com