Sha256: d9ed93f6c05f797f9a1ed60853708d0cebacfbed919507f82894765c7e88e017

Contents?: true

Size: 293 Bytes

Versions: 1

Compression:

Stored size: 293 Bytes

Contents

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

1 entries across 1 versions & 1 rubygems

Version Path
ougai-1.6.6 lib/ougai/serializer.rb