Method: Sinatra::JSON#json

Defined in:
lib/sinatra/json.rb

#json(object, options = {}) ⇒ Object



97
98
99
100
# File 'lib/sinatra/json.rb', line 97

def json(object, options = {})
  content_type resolve_content_type(options)
  resolve_encoder_action object, resolve_encoder(options)
end