dewski/json_builder — pull request #44 by CQQL (2013-08-14 13:15:22+00:00)
Title: Enable iteration over any Enumerable instead of only Array and ActiveRecord::Relation

That way you can iterate over your own Enumerable objects.