Rubyを使用してこれを変換する必要があります...
{"30"=>["Morgan", ["lib1", "lib2"]],
"31"=>["Morgan", ["lib9", "lib2", "lib3"]],
"32"=>["Gary", ["lib1", "lib2"]],
"33"=>["Morgan", ["lib1"]],
"34"=>["Morgan", []],
"35"=>["Morgan", []],
"36"=>["Morgan", ["lib3", "lib2"]],
"37"=>["jim", ["lib1"]]}
これに...
{"Morgan"=>[30,31,33,34,35,36],
"Gary"=>[32], []=>[34,35],
"jim"=>[37]}
何か案は?