Print analytics status in json if the global json option is specified
Fixes after code review
Merge pull request #237 from Icenium/paletov/print-analytics-status-in-json

Print analytics status in json if the global json option is specified