Module: Rollbar::JSON

Defined in:
lib/rollbar/json.rb,
lib/rollbar/middleware/js/json_value.rb

Overview

:nodoc:

Defined Under Namespace

Classes: JsOptionsState, Value

Class Method Summary collapse

Class Method Details

.dump(object) ⇒ Object



8
9
10
11
12
# File 'lib/rollbar/json.rb', line 8

def dump(object)
  Rollbar.plugins.get('basic_socket').load_scoped!(true) do
    ::JSON.generate(object)
  end
end

.load(string) ⇒ Object



14
15
16
# File 'lib/rollbar/json.rb', line 14

def load(string)
  ::JSON.parse(string)
end