http://qs321.pair.com?node_id=11115362


in reply to Parsing data from JSON response file.

If the data is as you show in the example then you do not need the loop, you can just access whatever you need directly. To see what is happening within your loop, add another print statement:
for my $key ( keys %$data ) { print "key: $key\n"; ...