Add JSON format to table printer
This PR adds JSON output to the existing table printer and updates all
actions which use the table printer.
JSON tables are printed out like:
```json
{
"kind": "moduleList",
"data": [
{"module": "/"},
{"module": "a"},
{"module": "a.b"}
]
}
```
Where:
* `kind` is the kind of data in the table
* `data` contains the table rows matched to the header
Fixes #693
Signed-off-by:
bryanl <bryanliles@gmail.com>
Showing