From 1ae5aa27f60db4d6f3d522bc2812e859f630413c Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 2 May 2023 18:15:32 +0200 Subject: Journey: TO_JSON: Handle route (Stop.pm objects) --- lib/Travel/Status/DE/HAFAS/Journey.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/Travel/Status') 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; } -- cgit v1.2.3