Ruby - File IO
Identify the error in this Ruby code snippet:
require 'json'
json_str = '{"a":1, "b":2}'
obj = JSON.parse(json_str)
puts obj[:a]Identify the error in this Ruby code snippet:
require 'json'
json_str = '{"a":1, "b":2}'
obj = JSON.parse(json_str)
puts obj[:a]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions