johnewart/ruby-metrics — pull request #28 by eric (2011-11-02 22:54:25+00:00)
Title: Implement #as_json on all objects

Delegate generation of json hash to #as_json and update #to_json to call
the new method.

This follows the ActiveSupport convention for separating actual JSON
generation from creating a hash to represent the data.

This pull request implements the remaining work that was in #25.