Added logging to JSON response.