Class: Fluent::ExecUtil::JSONParser

Inherits:
Parser
  • Object
show all
Defined in:
lib/fluent/plugin/exec_util.rb

Instance Method Summary collapse

Methods inherited from Parser

#initialize

Constructor Details

This class inherits a constructor from Fluent::ExecUtil::Parser

Instance Method Details

#call(io) ⇒ Object



78
79
80
81
82
# File 'lib/fluent/plugin/exec_util.rb', line 78

def call(io)
  y = Yajl::Parser.new
  y.on_parse_complete = @on_message
  y.parse(io)
end