jp icon indicating copy to clipboard operation
jp copied to clipboard

Allow processing of a stream of separate JSON elements

Open wryun opened this issue 8 years ago • 5 comments

See #11

wryun avatar Aug 09 '17 10:08 wryun

+1, this would allow jp to work with ndjson. I'd even argue that this should be the default behavior of jp, rather than hidden behind a flag. This is how jq works.

danvk avatar Feb 18 '18 15:02 danvk

+1, and I agree this should be the default behavior.

lostinthefrost avatar Jun 12 '18 19:06 lostinthefrost

Now available in https://github.com/go-jsonfile/jp/releases/tag/v0.1.5

suntong avatar Jun 05 '21 22:06 suntong

Heh, well, if we're saying that, it's been available at https://github.com/wryun/jp for a few years now (with other useful additions) :)

EDIT: not to say it wouldn't be a good thing if someone picked up jp and started maintaining it, which I'm definitely not going to do. Good luck!

wryun avatar Jun 05 '21 22:06 wryun

+1, this would allow jp to work with ndjson. I'd even argue that this should be the default behavior of jp, rather than hidden behind a flag. This is how jq works.

+1, and I agree this should be the default behavior.

Now available in https://github.com/go-jsonfile/jp/releases/tag/v0.1.5

Also available as the default behavior in jpp, an extended superset of the jp command: https://github.com/jmespath/jp/pull/30

zmedico avatar Jun 15 '21 18:06 zmedico