One-line alternatives:
JSON.parse File.read("badges.txt") File.open "badges.txt", &JSON.method(:load)
JSON.parse File.read("badges.txt")
File.open "badges.txt", &JSON.method(:load)
One-line alternatives:
JSON.parse File.read("badges.txt")
File.open "badges.txt", &JSON.method(:load)