codahale/metrics — pull request #262 by skastel (2012-07-11 23:00:14+00:00)
Title: Add option for JSON output to HealthCheckServlet

In reference to a feature request: https://github.com/codahale/metrics/issues/243

Added code to HealthCheckServlet to provide JSON output if 'Accepts' header of the HttpServletRequest is set to 'application/json'.

Updated unit tests to verify JSON output.