Message323475
The list of arguments of json.dump() can be seen here: https://docs.python.org/2/library/json.html
Notice that there is no way to make compression.
For example pandas allows you to do:
df.to_csv(path_or_buf=file_name, index=False, encoding='utf-8',
compression='gzip',
quoting=QUOTE_NONNUMERIC)
I want to be able to compress when I do:
with open('products.json', 'w') as outfile:
json.dump(data, outfile, sort_keys=True)
Please add the ability to compress using json.dump() |
|
Date |
User |
Action |
Args |
2018-08-13 11:34:23 | liad100 | set | recipients:
+ liad100 |
2018-08-13 11:34:23 | liad100 | set | messageid: <1534160063.78.0.56676864532.issue34393@psf.upfronthosting.co.za> |
2018-08-13 11:34:23 | liad100 | link | issue34393 messages |
2018-08-13 11:34:23 | liad100 | create | |
|