As suggested offline, print newline at end of JSON output (patch 1) and don't ignore -j flag if JSON support is not compiled-in - bail instead (patch 2). Phil Sutter (2): json: Print newline at end of list output main: Bail if non-available JSON was requested src/json.c | 2 ++ src/main.c | 3 +++ 2 files changed, 5 insertions(+) -- 2.21.0