Sha256: 3571e30b0130c74a0ce818b844e997f2251f4811ebd68cc58e48adf5ac607d58

Contents?: true

Size: 327 Bytes

Versions: 7

Compression:

Stored size: 327 Bytes

Contents

require 'rollbar/language_support'

module Rollbar
  module JSON # :nodoc:
    extend self

    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-2.24.0 lib/rollbar/json.rb
rollbar-2.23.2 lib/rollbar/json.rb
rollbar-2.23.1 lib/rollbar/json.rb
rollbar-2.23.0 lib/rollbar/json.rb
rollbar-2.22.1 lib/rollbar/json.rb
rollbar-2.22.0 lib/rollbar/json.rb
rollbar-2.21.0 lib/rollbar/json.rb