This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author doerwalter
Recipients doerwalter
Date 2009-04-09.17:15:26
SpamBayes Score 2.6109158e-06
Marked as misclassified No
Message-id <1239297330.19.0.24635332127.issue5729@psf.upfronthosting.co.za>
In-reply-to
Content
This patchs makes it possible to use tabs for indenting the output of
json.dumps(). With this patch the indent argument can now be either an
integer specifying the number of spaces per indent level or a string
specifying the indent string directly::

   json.dumps(list(range(10), indent=3) # three spaces per indent
   json.dumps(list(range(10), indent="\t") # one tab per indent
History
Date User Action Args
2009-04-09 17:15:30doerwaltersetrecipients: + doerwalter
2009-04-09 17:15:30doerwaltersetmessageid: <1239297330.19.0.24635332127.issue5729@psf.upfronthosting.co.za>
2009-04-09 17:15:28doerwalterlinkissue5729 messages
2009-04-09 17:15:28doerwaltercreate