ActiveModel::Serializers allows you to generate your JSON in an object-oriented and convention-driven manner.
Steve Klabnik
MIT