Method: ROM::HTTP::Handlers::JSONResponse.call
- Defined in:
- lib/rom/http/handlers/json.rb
.call(response, dataset) ⇒ Array<Hash>
Handle JSON responses
59 60 61 |
# File 'lib/rom/http/handlers/json.rb', line 59 def self.call(response, dataset) Array([JSON.parse(response.body)]).flatten(1) end |