Streaming Json Blobs
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
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 -s (stream) function yet.
it's more than a fork @candlerb. Have you checked https://github.com/go-jsonfile/jp/releases/tag/v0.2.2 yet?