From dc912e3e5ea020ec0f6ded8aa68b62a857d8e675 Mon Sep 17 00:00:00 2001 From: Derf Null Date: Thu, 25 May 2023 17:32:45 +0200 Subject: hafas-m --json: do not return one-element list for journey requests --- bin/hafas-m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/hafas-m b/bin/hafas-m index 3533cf4..4a2dda5 100755 --- a/bin/hafas-m +++ b/bin/hafas-m @@ -250,7 +250,7 @@ if ( my $err = $status->errstr ) { if ($json_output) { if ( $opt{journey} ) { - say JSON->new->convert_blessed->encode( [ $status->result ] ); + say JSON->new->convert_blessed->encode( $status->result ); } else { say JSON->new->convert_blessed->encode( [ $status->results ] ); -- cgit v1.2.3