my $data = decode_json($response); print "$data->{title} was released in year -> $data->{year}, and it is rated $data->{rating}\n";