Skip to content
This repository has been archived by the owner on Jan 15, 2020. It is now read-only.

Ability to reinitialize parser mid stream #67

Closed
garthgoodson opened this issue Dec 7, 2017 · 2 comments
Closed

Ability to reinitialize parser mid stream #67

garthgoodson opened this issue Dec 7, 2017 · 2 comments

Comments

@garthgoodson
Copy link

I'm trying to parse multiple discrete json object per file: E.g.
{
"object": 1
}
{
"object": 2
}

And while I can parse the first object, I'd like to be able to reinitialize the parser such that I can start from scratch with the second object (since these items are not in a json array). Currently I get an Additional data error when I hit the second object.

@cablehead
Copy link

An example use case this would make possible, receive json encoded stats emitted periodically from a server over a long lived socket connection.

@SalomonSmeke
Copy link

#75

This is already implemented per the original issue. It is however behind a bug who's fix is not published.

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

No branches or pull requests

4 participants