Module: Selenium::WebDriver::JsonHelper

Included in:
Selenium::WebDriver
Defined in:
lib/selenium/webdriver/common/json_helper.rb

Instance Method Summary collapse

Instance Method Details

#json_dump(obj) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



22
23
24
# File 'lib/selenium/webdriver/common/json_helper.rb', line 22

def json_dump(obj)
  MultiJson.dump(obj)
end

#json_load(obj) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



10
11
12
# File 'lib/selenium/webdriver/common/json_helper.rb', line 10

def json_load(obj)
  MultiJson.load(obj)
end