Corrects trove-client output

Updates the condition to test global symbol 'json_output' and
print results accordingly.

Change-Id: Ib1d5d45413b4652456c05bda6304701b0ce23a06
Closes-Bug: #1322461
Merge "Corrects trove-client output"