summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Travel/Status/DE/DBRIS/Journey.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Travel/Status/DE/DBRIS/Journey.pm b/lib/Travel/Status/DE/DBRIS/Journey.pm
index 43f2607..1549e8a 100644
--- a/lib/Travel/Status/DE/DBRIS/Journey.pm
+++ b/lib/Travel/Status/DE/DBRIS/Journey.pm
@@ -78,6 +78,9 @@ sub messages {
sub TO_JSON {
my ($self) = @_;
+ # transform raw_route into route (lazy accessor)
+ $self->route;
+
my $ret = { %{$self} };
delete $ret->{strptime_obj};