JSON Serializer for ActiveRecord Models and Collection and Output Helper