use JSON qw( decode_json ); my $json_array = decode_json ( 'https://someurl?sss&output=json' );