Unverified Commit 669aa8b7 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Trip->TO_JSON: Ensure that route is present

parent 85b8fa96
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -109,6 +109,9 @@ sub route {
sub TO_JSON {
	my ($self) = @_;

	# lazy loading
	$self->route;

	my $ret = { %{$self} };

	delete $ret->{strptime_obj};