diff options
author | Derf Null <derf@finalrewind.org> | 2023-05-25 17:32:45 +0200 |
---|---|---|
committer | Derf Null <derf@finalrewind.org> | 2023-05-25 17:32:45 +0200 |
commit | dc912e3e5ea020ec0f6ded8aa68b62a857d8e675 (patch) | |
tree | f8a93158aea539235abab0619db52992a9a1ab0a | |
parent | 49a8b3b9b49c9a15cf5913d75689d5d6c631f190 (diff) |
hafas-m --json: do not return one-element list for journey requests
-rwxr-xr-x | bin/hafas-m | 2 |
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 ] ); |