Class Her::Middleware::SecondLevelParseJSON
In: lib/her/middleware/second_level_parse_json.rb
Parent: ParseJSON

This middleware expects the resource/collection data to be contained in the `data` key of the JSON object

Methods

on_complete   parse  

Public Instance methods

This method is triggered when the response has been received. It modifies the value of `env[:body]`.

@param [Hash] env The response environment @private

Parse the response body

@param [String] body The response body @return [Mixed] the parsed response @private

[Validate]