Sha256: 7f36913e70a034d444354b3b7f5486cacfc891e6f725d27f4dc0d0214fad3bce

Contents?: true

Size: 419 Bytes

Versions: 77

Compression:

Stored size: 419 Bytes

Contents

require 'oj'

module Fluent::Plugin
  module Serializer

    class Oj
      include Elasticsearch::Transport::Transport::Serializer::Base

      # De-serialize a Hash from JSON string
      #
      def load(string, options={})
        ::Oj.load(string, options)
      end

      # Serialize a Hash to JSON string
      #
      def dump(object, options={})
        ::Oj.dump(object, options)
      end
    end
  end
end

Version data entries

77 entries across 77 versions & 2 rubygems

Version Path
fluent-plugin-elasticsearch-5.1.5 lib/fluent/plugin/oj_serializer.rb
fluent-plugin-elasticsearch-5.1.4 lib/fluent/plugin/oj_serializer.rb
fluent-plugin-elasticsearch-5.1.3 lib/fluent/plugin/oj_serializer.rb
fluent-plugin-elasticsearch-5.1.2 lib/fluent/plugin/oj_serializer.rb
fluent-plugin-elasticsearch-5.1.1 lib/fluent/plugin/oj_serializer.rb
fluent-plugin-elasticsearch-5.1.0 lib/fluent/plugin/oj_serializer.rb
fluent-plugin-elasticsearch-5.0.5 lib/fluent/plugin/oj_serializer.rb
fluent-plugin-elasticsearch-5.0.4 lib/fluent/plugin/oj_serializer.rb
fluent-plugin-elasticsearch-5.0.3 lib/fluent/plugin/oj_serializer.rb
fluent-plugin-elasticsearch-5.0.2 lib/fluent/plugin/oj_serializer.rb
fluent-plugin-elasticsearch-dext-5.0.2 lib/fluent/plugin/oj_serializer.rb
fluent-plugin-elasticsearch-5.0.1 lib/fluent/plugin/oj_serializer.rb
fluent-plugin-elasticsearch-5.0.0 lib/fluent/plugin/oj_serializer.rb
fluent-plugin-elasticsearch-4.3.3 lib/fluent/plugin/oj_serializer.rb
fluent-plugin-elasticsearch-4.3.2 lib/fluent/plugin/oj_serializer.rb
fluent-plugin-elasticsearch-4.3.1 lib/fluent/plugin/oj_serializer.rb
fluent-plugin-elasticsearch-4.3.0 lib/fluent/plugin/oj_serializer.rb
fluent-plugin-elasticsearch-4.2.2 lib/fluent/plugin/oj_serializer.rb
fluent-plugin-elasticsearch-4.2.1 lib/fluent/plugin/oj_serializer.rb
fluent-plugin-elasticsearch-4.2.0 lib/fluent/plugin/oj_serializer.rb