Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consecutive JSON objects #3

Open
oprypin opened this issue Mar 3, 2015 · 1 comment
Open

Consecutive JSON objects #3

oprypin opened this issue Mar 3, 2015 · 1 comment

Comments

@oprypin
Copy link

oprypin commented Mar 3, 2015

>>> 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.

@amarao
Copy link

amarao commented Mar 3, 2015

Hello. Consecutive JSON objects is very important feature I plan to use in json4shell. May be it can be forbidden or permitted by switch, but this mode is really nice for some situations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants