Sha256: 4f7d5794c6851120f2bd0f6ae9dac43a9e165747195dd1e9b9e133c87aa320f7

Contents?: true

Size: 231 Bytes

Versions: 41

Compression:

Stored size: 231 Bytes

Contents

unless Object.new.respond_to?(:to_json)
  # @private
  class Object
    def to_json(*args)
      Riak::JSON.encode(self)
    end
  end

  # @private
  class Symbol
    def to_json(*args)
      to_s.to_json(*args)
    end
  end
end

Version data entries

41 entries across 31 versions & 4 rubygems

Version Path
riak-client-2.6.0 lib/riak/core_ext/json.rb
riak-client-2.5.0 lib/riak/core_ext/json.rb
riak-client-2.3.0 lib/riak/core_ext/json.rb
riak-client-2.2.2 lib/riak/core_ext/json.rb
riak-client-2.2.1 lib/riak/core_ext/json.rb
riak-client-noenc-1.0.0 lib/riak/core_ext/json.rb
riak-client-2.2.0 lib/riak/core_ext/json.rb
riak-client-2.2.0.pre1 lib/riak/core_ext/json.rb
riak-client-2.1.0 lib/riak/core_ext/json.rb
riak-client-1.4.5 lib/riak/core_ext/json.rb
riak-client-2.0.0 lib/riak/core_ext/json.rb
riak-client-2.0.0.rc2 lib/riak/core_ext/json.rb
riak-client-2.0.0.rc1 lib/riak/core_ext/json.rb
riak-client-1.4.4.1 lib/riak/core_ext/json.rb
riak-client-1.4.4 lib/riak/core_ext/json.rb
riak-client-1.4.3 lib/riak/core_ext/json.rb
riak-client-1.4.2 lib/riak/core_ext/json.rb
riak-client-1.4.1 lib/riak/core_ext/json.rb
riak-client-1.4.0 lib/riak/core_ext/json.rb
riak-client-1.2.0 lib/riak/core_ext/json.rb