Class: FaradayMiddleware::MultiJson::ParseJson

Inherits:
ResponseMiddleware
  • Object
show all
Defined in:
lib/faraday_middleware/multi_json.rb

Instance Method Summary collapse

Instance Method Details

#parse(body) ⇒ Object


9
10
11
# File 'lib/faraday_middleware/multi_json.rb', line 9

def parse(body)
  ::MultiJson.load(body, @options) rescue body
end