mirror of
https://github.com/johnkerl/miller.git
synced 2026-07-31 19:51:33 +00:00
* Draw a distinction between JSON and JSON Lines formats
* Add JSON Lines to on-line help example
* Have JSON format default to --jlistwrap and --jvstack
* Update test cases for --jlistwrap output for JSON output format
* Have JSON format default to --jlistwrap and --jvstack for --{X}2j as well
* Make --jlistwrap / --jvstack as legacy flags, since now --json and --jsonl
* Add --c2l, --l2c, etc. command-line flags
* docmods for JSON Lines
* Update regression-test cases for JSON / JSON Lines distinction
60 lines
926 B
Text
60 lines
926 B
Text
[
|
|
{
|
|
"hostname": "localhost",
|
|
"pid": 12345,
|
|
"req": {
|
|
"id": 6789,
|
|
"method": "GET",
|
|
"path": "api/check",
|
|
"host": "foo.bar",
|
|
"headers": {
|
|
"host": "bar.baz",
|
|
"user-agent": "browser"
|
|
}
|
|
},
|
|
"res": {
|
|
"status_code": 200,
|
|
"header": {
|
|
"content-type": "text",
|
|
"content-encoding": "plain"
|
|
}
|
|
},
|
|
"empty1": {},
|
|
"empty2": [],
|
|
"wrapper": {
|
|
"empty3": {},
|
|
"emtpy4": []
|
|
}
|
|
}End of record stream
|
|
|
|
]
|
|
,
|
|
{
|
|
"hostname": "localhost",
|
|
"pid": 12345,
|
|
"req": {
|
|
"id": 6789,
|
|
"method": "GET",
|
|
"path": "api/check",
|
|
"host": "foo.bar",
|
|
"headers": {
|
|
"host": "bar.baz",
|
|
"user-agent": "browser"
|
|
}
|
|
},
|
|
"res": {
|
|
"status_code": 200,
|
|
"header": {
|
|
"content-type": "text",
|
|
"content-encoding": "plain"
|
|
}
|
|
},
|
|
"empty1": {},
|
|
"empty2": [],
|
|
"wrapper": {
|
|
"empty3": {},
|
|
"emtpy4": []
|
|
}
|
|
}End of record stream
|
|
|
|
]
|