11 ms·
If you have a streaming parser it spits out what it's got and it waits for more data (or an end which may never come). Mostly you would be extracting what you n
by beardyw 3y ago
If you have a streaming parser it spits out what it's got and it waits for more data (or an end which may never come). Mostly you would be extracting what you needed from the JSON as it went along. Wondering if jq works that way?
- rzzzt 3y agojq supports both modes. You can use --slurp to pull all newline-separated input into a big array before it starts to process it, otherwise it should produce a result for each complete object parsed (I think): https://jqlang.github.io/jq/manual/#invoking-jq https://jqlang.github.io/jq/manual/#invoking-jq Edit: ah, the streaming described in your comment is also available via --stream, but the format presented to the selection-filtering-transformation stage will be a bit different.