Module: Docker::Distribution::Api::Util
- Defined in:
- lib/docker/distribution/api/util.rb
Class Method Summary collapse
Class Method Details
.parse_json(body) ⇒ Object
8 9 10 11 12 |
# File 'lib/docker/distribution/api/util.rb', line 8 def parse_json(body) JSON.parse(body) unless body.nil? || body.empty? || (body == 'null') rescue JSON::ParserError => ex raise UnexpectedResponseError, ex. end |