Method: Bixby::HttpClient#http_get_json

Defined in:
lib/bixby-common/util/http_client.rb

#http_get_json(url) ⇒ Object

Execute an HTTP GET request (see #http_get) and parse the JSON response

Parameters:

  • url (String)

Returns:

  • (Object)

    Result of calling JSON.parse() on the response body



25
26
27
# File 'lib/bixby-common/util/http_client.rb', line 25

def http_get_json(url)
  MultiJson.load(http_get(url))
end