Class: FamilySearch::Middleware::MultiJsonParse

Inherits:
Faraday::Response::Middleware
  • Object
show all
Defined in:
lib/familysearch/middleware/response/multi_json.rb

Overview

Parses the response from JSON into a Hash. This uses the multi_json gem to provide more flexibility in JSON parser support and to better support other ruby environments such as JRuby, Rubinius, etc.

Instance Method Summary collapse

Instance Method Details

#parse(body) ⇒ Object

The method that has MultiJson parse the json string.



15
16
17
# File 'lib/familysearch/middleware/response/multi_json.rb', line 15

def parse(body)
  MultiJson.load(body)
end