create a jsonOutput() static method to output the webservice json data and make it testable