instance method
JSON::Coder#load_file
load(path) → Object
ext/json/lib/json/common.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/ext/json/lib/json/common.rb, line 1094
def load_file(path)
load(File.read(path, encoding: Encoding::UTF_8))
end
Parse the given JSON document and return an equivalent Ruby object.