class FluentExt::JSONParser

Public Instance Methods

parse(text) click to toggle source
# File lib/fluent/plugin/parser.rb, line 61
def parse(text)
  record = Yajl.load(text)
  return parse_time(record)
rescue Yajl::ParseError
  unless @suppress_parse_error_log
    @log.warn "pattern not match(json): #{text.inspect}: #{$!}"
  end
  return nil, nil
end