class Fluent::Plugin::Serializer::Oj
Public Instance Methods
dump(object, options={})
click to toggle source
Serialize a Hash to JSON string
# File lib/fluent/plugin/oj_serializer.rb, line 17 def dump(object, options={}) ::Oj.dump(object, options) end
load(string, options={})
click to toggle source
De-serialize a Hash from JSON string
# File lib/fluent/plugin/oj_serializer.rb, line 11 def load(string, options={}) ::Oj.load(string, options) end