# File lib/active_record/serializers/json_serializer.rb, line 55 def to_json(options = {}) if include_root_in_json "{#{self.class.json_class_name}: #{JsonSerializer.new(self, options).to_s}}" else JsonSerializer.new(self, options).to_s end end