Skip to content
/ ndjson Public

Formats and colorizes newline delimited JSON for better readability.

License

Notifications You must be signed in to change notification settings

rojul/ndjson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ndjson

Formats and colorizes newline delimited JSON for better readability.

Example:

{"type":"json","value":42,"multiline":"line1\nline2","array":[1,2,3]}
type: json value: 42 multiline: line1
line2 array: [1, 2, 3]

Usage

ndjson < file
tail -f file | ndjson
docker logs --tail 100 -f container 2>&1 | ndjson
kubectl logs --tail 100 -f pod | ndjson

Install

With cargo

cargo install ndjson

From binaries

Download the prebuilt binaries from the Releases page.

About

Formats and colorizes newline delimited JSON for better readability.

Resources

License

Stars

Watchers

Forks

Languages