diff --git a/lib/json/common.rb b/lib/json/common.rb index d2f6d7b1..bc0212af 100644 --- a/lib/json/common.rb +++ b/lib/json/common.rb @@ -183,13 +183,13 @@ def parse!(source, opts = {}) # Parses the content of a file # See parse method documentation for more information. def load_file(filespec, opts = {}) - parse(File.read(filespec)) + parse(File.read(filespec), opts) end # Parses the content of a file # See parse! method documentation for more information. def load_file!(filespec, opts = {}) - parse!(File.read(filespec)) + parse!(File.read(filespec), opts) end