Ruby - File IO
What is the output of this Ruby code?
require 'json'
json_str = '{"name":"Bob","age":25}'
obj = JSON.parse(json_str)
puts obj["name"]What is the output of this Ruby code?
require 'json'
json_str = '{"name":"Bob","age":25}'
obj = JSON.parse(json_str)
puts obj["name"]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions