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

Version Path
fluent-plugin-nuopenlineage-light-0.1.0 vendor/bundle/ruby/3.3.0/gems/yajl-ruby-1.4.3/lib/yajl/json_gem.rb
fluent-plugin-openlineage-light-0.1.4 vendor/bundle/ruby/3.3.0/gems/yajl-ruby-1.4.3/lib/yajl/json_gem.rb
fluent-plugin-openlineage-light-0.1.3 vendor/bundle/ruby/3.3.0/gems/yajl-ruby-1.4.3/lib/yajl/json_gem.rb
fluent-plugin-openlineage-0.1.0 vendor/bundle/ruby/3.3.0/gems/yajl-ruby-1.4.3/lib/yajl/json_gem.rb
fluent-plugin-google-cloud-logging-on-prem-0.1.0 vendor/ruby/3.1.0/gems/yajl-ruby-1.4.3/lib/yajl/json_gem.rb
yajl-ruby-1.4.3 lib/yajl/json_gem.rb
yajl-ruby-1.4.2 lib/yajl/json_gem.rb
yajl-ruby-1.4.1 lib/yajl/json_gem.rb
yajl-ruby-1.4.0 lib/yajl/json_gem.rb
yajl-ruby-1.2.3 lib/yajl/json_gem.rb
yajl-ruby-1.3.1 lib/yajl/json_gem.rb
fluent-plugin-detect-memb-exceptions-0.0.2 vendor/bundle/ruby/2.0.0/gems/yajl-ruby-1.3.0/lib/yajl/json_gem.rb
fluent-plugin-detect-memb-exceptions-0.0.1 vendor/bundle/ruby/2.0.0/gems/yajl-ruby-1.3.0/lib/yajl/json_gem.rb
yajl-ruby-1.2.2 lib/yajl/json_gem.rb
yajl-ruby-1.3.0 lib/yajl/json_gem.rb
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/gems/yajl-ruby-1.2.1/lib/yajl/json_gem.rb
yajl-ruby-1.2.1 lib/yajl/json_gem.rb
yajl-ruby-1.2.0 lib/yajl/json_gem.rb
yajl-ruby-zenjoy-1.1.0 lib/yajl/json_gem.rb
yajl-ruby-maglev--1.1.0 lib/yajl/json_gem.rb