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

Streaming Json Blobs #11

Open
bitdivine opened this issue Feb 8, 2017 · 3 comments
Open

Streaming Json Blobs #11

bitdivine opened this issue Feb 8, 2017 · 3 comments

Comments

@bitdivine
Copy link

Hello,

Thank you for this. On individual JSON blobs it works well.

I usually deal with streams of JSON bobs, usually one JSON blob per line, but as jp reads only the first blob and then exits I have to write a bash loop that runs a separate process on each blob as it comes in. Needles to say this is very slow, not to mention inconvenient.

What do you think of reading a stream of blobs from stdin? This behaviour can always be behind a flag to keep current behaviour in the probably rare case of users are making use of the fact that only the first blob is processed.

Best wishes, Max

@suntong
Copy link

suntong commented Jun 5, 2021

@candlerb
Copy link

Ah that is a fork, I didn't realise at first.

I have jmestpath/jp version 0.2.0, and it doesn't support the -s (stream) function yet.

@suntong
Copy link

suntong commented Feb 11, 2022

it's more than a fork @candlerb. Have you checked https://github.com/go-jsonfile/jp/releases/tag/v0.2.2 yet?

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

3 participants