my $data = decode_json($response); printf( "'%s' was released in year %d and it is rated %s.\n", $data->{title}, $data->{year}, $data->{rating}, );