Sha256: 954b4fc3cdec717730609018be54c629096cb6f63bc8ba6578bb46634497f27d

Contents?: true

Size: 346 Bytes

Versions: 7

Compression:

Stored size: 346 Bytes

Contents

require 'rollbar/language_support'
require 'json'

module Rollbar
  module JSON # :nodoc:
    module_function

    attr_writer :options_module

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

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rollbar-3.4.2 lib/rollbar/json.rb
rollbar-3.4.1 lib/rollbar/json.rb
rollbar-3.4.0 lib/rollbar/json.rb
rollbar-3.3.3 lib/rollbar/json.rb
rollbar-3.3.2 lib/rollbar/json.rb
rollbar-3.3.1 lib/rollbar/json.rb
rollbar-3.3.0 lib/rollbar/json.rb