jmespath / jmespath/jp

Streaming Json Blobs

Open
#11 3 comments 8 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
786
Forks
48
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.