Message324363
This format is known as JSON Lines: http://jsonlines.org/. Its support in the user code is trivial -- just one or two lines of code.
Writing:
for item in items:
json.dump(item, file)
or
jsondata = ''.join(json.dumps(item) for item in items)
Reading:
items = [json.loads(line) for line in file]
or
items = [json.loads(line) for line in jsondata.splitlines()]
See also issue31553 and issue34393. I think all these propositions should be rejected. |
|
Date |
User |
Action |
Args |
2018-08-30 04:26:04 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, bob.ippolito, enedil, ronron |
2018-08-30 04:26:04 | serhiy.storchaka | set | messageid: <1535603164.7.0.56676864532.issue34529@psf.upfronthosting.co.za> |
2018-08-30 04:26:04 | serhiy.storchaka | link | issue34529 messages |
2018-08-30 04:26:04 | serhiy.storchaka | create | |
|