[ANN]:JSONStream
Clark C. Evans
cce at clarkevans.com
Wed Jul 17 11:51:40 EDT 2013
Looks interesting. In YAML we used three dashes as the "stream
separator".
So already a YAML processor could handle a JSON stream ...
>>> for doc in yaml.load_all("""
... --- {"one": "value"}
... --- {"two": "another"}
... ---
... {"three": "a third item in the stream",
... "with": "more data"}
... """):
... print doc
...
{'one': 'value'}
{'two': 'another'}
{'with': 'more data', 'three': 'a third item in the stream'}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20130717/e2fb9221/attachment.html>
More information about the Python-list
mailing list