-
Notifications
You must be signed in to change notification settings - Fork 48
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
Comments
wryun
pushed a commit
to wryun/jp
that referenced
this issue
Aug 9, 2017
suntong
pushed a commit
to go-jsonfile/jp
that referenced
this issue
Jun 5, 2021
Now available in https://github.com/go-jsonfile/jp/releases/tag/v0.1.5 |
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 |
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
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
The text was updated successfully, but these errors were encountered: