Top Level Namespace

Defined Under Namespace

Modules: WPScan

Instance Method Summary collapse

Instance Method Details

#read_json_file(file) ⇒ Object



1
2
3
4
5
6
# File 'lib/wpscan/helper.rb', line 1

def read_json_file(file)
  # p "Reading #{file}"
  JSON.parse(File.read(file))
rescue => e
  raise "JSON parsing error in #{file} #{e}"
end