Class: ApiModel::ResponseParser::Json
- Inherits:
-
Object
- Object
- ApiModel::ResponseParser::Json
- Defined in:
- lib/api_model/response_parser/json.rb
Instance Method Summary collapse
Instance Method Details
#parse(body) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/api_model/response_parser/json.rb', line 5 def parse(body) JSON.parse body rescue JSON::ParserError Log.info "Could not parse JSON response: #{body}" return nil end |