class LogStash::Filters::Dictionary::JsonFile

Protected Instance Methods

read_file_into_dictionary() click to toggle source
# File lib/logstash/filters/dictionary/json_file.rb, line 9
def read_file_into_dictionary
  content = IO.read(@dictionary_path, :mode => 'r:bom|utf-8')
  @dictionary.update(LogStash::Json.load(content)) unless content.nil? || content.empty?
end