[TASK] Enable JSON Output

This is triggered by the --json cli flag
[TASK] Fix inconsistent return
[TASK] Improve documentation of CLI tasks