Crates.io | meowj |
lib.rs | meowj |
version | 0.2.0 |
source | src |
created_at | 2019-06-24 17:08:27.480678 |
updated_at | 2019-06-30 03:08:07.456795 |
description | pancake-ify json |
homepage | |
repository | https://github.com/jackharrhy/meowj |
max_upload_size | |
id | 143232 |
size | 46,758 |
displays json in a flat format.
note: still a very new project, no --help
or anything yet, also recusrive instead of iterative.
Via Cargo
cargo install meowj
cat example.json | meowj
or
meowj example.json
example.json
{
"array": [
1,
2,
3
],
"boolean": true,
"color": "#82b92c",
"null": null,
"number": 123,
"object": {
"a": "b",
"c": "d",
"e": "f"
},
"string": "Hello World"
}
meowj output
.array[0] = 1
.array[1] = 2
.array[2] = 3
.boolean = true
.color = "#82b92c"
.null = null
.number = 123
.object.a = "b"
.object.c = "d"
.object.e = "f"
.string = "Hello World"
Using this test data:
curl "https://data.nasa.gov/resource/y77d-th95.json" > earth_meteorite_landings.json
Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
---|---|---|---|---|
meowj earth_meteorite_landings.json |
21.5 ± 1.4 | 20.4 | 30.9 | 1.0 |
gron earth_meteorite_landings.json |
60.3 ± 2.7 | 54.1 | 65.2 | 2.8 |
catj earth_meteorite_landings.json |
218.5 ± 7.9 | 207.6 | 231.6 | 10.2 |
initially inspired by catj, but without dependencies on node/npm