You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change JQ to process newline-delimited JSON (#227)
* Change JQ to process newline-delimited JSON
https://jsonlines.org
Example use case:
Analyzes logs to count and display frequency of different log levels
from newline-delimited JSON input.
```
cat log.json | ./goscript.sh -c 'script.Stdin().JQ(".level").Freq().Stdout()'
3 "INFO"
2 "WARN"
1 "ERROR"
```
* tweaks
* remove extra failure outputs
* add extra ignored test input
---------
Co-authored-by: John Arundel <[email protected]>
0 commit comments