>>> list(jsonstream.JSONStream(' [1][2] '))
[((), []), ((0,), 1), ((), []), ((0,), 2)]
>>> list(jsonstream.JSONStream(' []{ '))
[((), []), ((), {})]
>>> list(jsonstream.JSONStream(' []" '))
[((), [])]
>>> list(jsonstream.JSONStream(' [] '))
[((), [])]
Consecutive JSON objects parse, and there is no way to tell when an object ends (I thought () was the signal, but the incomplete string ruins it.
There needs to be functionality to allow only exactly one JSON object.
Consecutive JSON objects parse, and there is no way to tell when an object ends (I thought
()was the signal, but the incomplete string ruins it.There needs to be functionality to allow only exactly one JSON object.