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'}
-- http://mail.python.org/mailman/listinfo/python-list