module Docker::Distribution::Api::Util
Public Instance Methods
parse_json(body)
click to toggle source
# 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.message end