summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDerf Null <derf@finalrewind.org>2023-05-25 17:32:45 +0200
committerDerf Null <derf@finalrewind.org>2023-05-25 17:32:45 +0200
commitdc912e3e5ea020ec0f6ded8aa68b62a857d8e675 (patch)
treef8a93158aea539235abab0619db52992a9a1ab0a /bin
parent49a8b3b9b49c9a15cf5913d75689d5d6c631f190 (diff)
hafas-m --json: do not return one-element list for journey requests
Diffstat (limited to 'bin')
-rwxr-xr-xbin/hafas-m2
1 files changed, 1 insertions, 1 deletions
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 ] );