Ruby では、辞書はHash

require 'json'

# JSON では、nil ではなく、null を使う
json_str = '{"a":1,"b":"bb","c":true,"d":null}'
puts json_str #=> {"a":1,"b":"bb","c":true,"d":null}

p json_obj = JSON.parse( json_str )
#=> {"a"=>1, "b"=>"bb", "c"=>true, "d"=>nil} # nil になる

p json_obj.class #=> Hash

puts JSON.dump( json_obj )
#=> {"a":1,"b":"bb","c":true,"d":null} # null になる