/jl

Convert to JSON Lines from STDOUT.

Primary LanguageGoMIT LicenseMIT

jl (JSON by line)

Convert to JSON Lines from STDOUT.

The main purpose is pre-process output from UNIX command to query by jq.

Example

$ ps aux | jl --header | jq -r ".USER" | sort | uniq
...
root
sachaos

Install

$ git clone https://github.com/sachaos/jl.git
$ cd jl
$ go install