my $syn_array = $decoded_json->{def}[0]{tr}[0]{syn}; for my $rSyn (@$syn_array) { print "$rSyn->{text}, $rSyn->{pos}, $rSyn->{gen}\n"; }