mirror of
https://github.com/johnkerl/miller.git
synced 2026-07-20 18:10:07 +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
11 lines
480 B
Text
11 lines
480 B
Text
[
|
|
{
|
|
"hostname": "\"localhost\"",
|
|
"pid": "12345",
|
|
"req": "{\n \"id\": 6789,\n \"method\": \"GET\",\n \"path\": \"api/check\",\n \"host\": \"foo.bar\",\n \"headers\": {\n \"host\": \"bar.baz\",\n \"user-agent\": \"browser\"\n }\n}",
|
|
"res": "{\n \"status_code\": 200,\n \"header\": {\n \"content-type\": \"text\",\n \"content-encoding\": \"plain\"\n }\n}",
|
|
"empty1": "{}",
|
|
"empty2": "[]",
|
|
"wrapper": "{\n \"empty3\": {},\n \"emtpy4\": []\n}"
|
|
}
|
|
]
|