lib/grape/formatter/json.rb in grape-0.19.2 vs lib/grape/formatter/json.rb in grape-1.0.0
- old
+ new
@@ -2,10 +2,10 @@
module Formatter
module Json
class << self
def call(object, _env)
return object.to_json if object.respond_to?(:to_json)
- MultiJson.dump(object)
+ ::Grape::Json.dump(object)
end
end
end
end
end