Sha256: f8c05c8c775c3dfccec0243d27b9fa0e0b7366068518c2149a8fda840ded85c5

Contents?: true

Size: 324 Bytes

Versions: 16

Compression:

Stored size: 324 Bytes

Contents

# frozen_string_literal: true

module Ougai
  class Serializer
    def self.for_json
      if RUBY_PLATFORM =~ /java/
        require 'ougai/serializers/json_jr_jackson'
        Serializers::JsonJrJackson.new
      else
        require 'ougai/serializers/json_oj'
        Serializers::JsonOj.new
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
ougai-2.0.0-java lib/ougai/serializer.rb
ougai-2.0.0 lib/ougai/serializer.rb
ougai-1.9.1-java lib/ougai/serializer.rb
ougai-1.9.1 lib/ougai/serializer.rb
ougai-1.9.0-java lib/ougai/serializer.rb
ougai-1.9.0 lib/ougai/serializer.rb
ougai-1.8.5 lib/ougai/serializer.rb
ougai-1.8.4 lib/ougai/serializer.rb
ougai-1.8.3 lib/ougai/serializer.rb
ougai-1.8.2 lib/ougai/serializer.rb
ougai-1.8.1 lib/ougai/serializer.rb
ougai-1.8.0-java lib/ougai/serializer.rb
ougai-1.8.0 lib/ougai/serializer.rb
ougai-1.7.1 lib/ougai/serializer.rb
ougai-1.7.1-java lib/ougai/serializer.rb
ougai-1.7.0 lib/ougai/serializer.rb