summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2023-05-02 18:15:32 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2023-05-02 18:15:32 +0200
commit1ae5aa27f60db4d6f3d522bc2812e859f630413c (patch)
tree9b0f370587808430ac172cae8079895818fc5c66
parent38071ce2ad25189ef7bbe14508e3d23e5a913001 (diff)
Journey: TO_JSON: Handle route (Stop.pm objects)
-rw-r--r--lib/Travel/Status/DE/HAFAS/Journey.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Travel/Status/DE/HAFAS/Journey.pm b/lib/Travel/Status/DE/HAFAS/Journey.pm
index 7fa9014..e3c1c2a 100644
--- a/lib/Travel/Status/DE/HAFAS/Journey.pm
+++ b/lib/Travel/Status/DE/HAFAS/Journey.pm
@@ -420,6 +420,7 @@ sub TO_JSON {
$ret->{$k} = $ret->{$k}->epoch;
}
}
+ $ret->{route} = [ map { $_->TO_JSON } $self->route ];
return $ret;
}