This method is deprecated or moved on the latest stable version.
The last existing version (v1_9_2_180) is shown here.
read_data(filename)
public
Read a JSON document from the file named
filename, parse it into a ruby data structure, and return the
data.
# File ext/json/lib/json/editor.rb, line 1284
def read_data(filename)
open(filename) do |f|
json = f.read
return parse_json(json)
end
rescue => e
Editor.error_dialog(self, "Failed to parse JSON file: #{e}!")
return
end