Method: JSON::Coder#load_file
- Defined in:
- lib/json/common.rb
#load_file(path) ⇒ Object
call-seq:
load(path) -> Object
Parse the given JSON document and return an equivalent Ruby object.
1056 1057 1058 |
# File 'lib/json/common.rb', line 1056 def load_file(path) load(File.read(path, encoding: Encoding::UTF_8)) end |