Return json to http request and cleanup printing