Class: FamilySearch::Middleware::MultiJsonParse
- Inherits:
-
Faraday::Response::Middleware
- Object
- Faraday::Response::Middleware
- FamilySearch::Middleware::MultiJsonParse
- 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
-
#parse(body) ⇒ Object
The method that has MultiJson parse the json string.
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 |