miller/test/cases/verb-json-parse-json-stringify/0010/expout
John Kerl da91878939
Distinguish between JSON and JSON Lines formats (#844)
* 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
2022-01-09 11:11:54 -05:00

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}"
}
]