7 8 9 10 11
# File 'lib/grape/formatter/json.rb', line 7 def call(object, _env) return object.to_json if object.respond_to?(:to_json) ::Grape::Json.dump(object) end