Sha256: 11afb54e0c8d76f9bfd5624b3317e242a527ed5e9bc1eb1f7f41a877fe315272
Contents?: true
Size: 314 Bytes
Versions: 23
Compression:
Stored size: 314 Bytes
Contents
require 'yajl' unless defined?(Yajl::Parser) require 'yajl/json_gem/parsing' require 'yajl/json_gem/encoding' module ::Kernel def JSON(object, opts = {}) if object.respond_to? :to_s JSON.parse(object.to_s, JSON.default_options.merge(opts)) else JSON.generate(object, opts) end end end
Version data entries
23 entries across 23 versions & 9 rubygems