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 rushter
Recipients liad100, rushter
Date 2018-08-13.11:49:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1534160964.71.0.56676864532.issue34393@psf.upfronthosting.co.za>
In-reply-to
Content
You can use the gzip module.

with gzip.GzipFile('products.json', 'w') as outfile:
        outfile.write(json.dumps(data, outfile, sort_keys=True))
History
Date User Action Args
2018-08-13 11:49:24rushtersetrecipients: + rushter, liad100
2018-08-13 11:49:24rushtersetmessageid: <1534160964.71.0.56676864532.issue34393@psf.upfronthosting.co.za>
2018-08-13 11:49:24rushterlinkissue34393 messages
2018-08-13 11:49:24rushtercreate