module Grape::Formatter::Json
Public Class Methods
call(object, _env)
click to toggle source
# File lib/grape/formatter/json.rb, line 5 def call(object, _env) return object.to_json if object.respond_to?(:to_json) MultiJson.dump(object) end