Config: Make json.array default to "on"

- This makes the default "export" output work out of the box with most
  JSON parsing libraries.
This commit is contained in:
Wilhelm Schuermann 2015-07-03 23:38:14 +02:00
parent e516f2bf65
commit c1a0370daa
6 changed files with 14 additions and 7 deletions

View file

@ -394,9 +394,12 @@ Enables or disables access to Taskwarrior internals and task metadata on the
command line. Defaults to on.
.TP
.B json.array=off
Determines whether the query command encloses the JSON output in '[...]' to
create a properly-formed JSON array. Defaults to off.
.B json.array=on
Determines whether the export command encloses the JSON output in '[...]' and
adds ',' after each exported task object to create a properly-formed JSON
array.
With json.array=off, export writes raw JSON objects to STDOUT, one per line.
Defaults to on.
.TP
.B _forcecolor=no