summaryrefslogtreecommitdiff
path: root/lib/Travel/Status/DE/EFA/Trip.pm
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-10-03 11:36:05 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-10-03 11:36:05 +0200
commit6fa6997cb1bb859272ad3f426ab0e0bb94065c7e (patch)
treebd4be6b92610ac76fbac493ef1cfe6e74a34c748 /lib/Travel/Status/DE/EFA/Trip.pm
parent296da9b358d5c7258fc056db6ce3b3cf044fa99e (diff)
efa-m: add --json option
Diffstat (limited to 'lib/Travel/Status/DE/EFA/Trip.pm')
-rw-r--r--lib/Travel/Status/DE/EFA/Trip.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Travel/Status/DE/EFA/Trip.pm b/lib/Travel/Status/DE/EFA/Trip.pm
index 6c404a1..b1e3437 100644
--- a/lib/Travel/Status/DE/EFA/Trip.pm
+++ b/lib/Travel/Status/DE/EFA/Trip.pm
@@ -106,7 +106,11 @@ sub route {
sub TO_JSON {
my ($self) = @_;
- return { %{$self} };
+ my $ret = { %{$self} };
+
+ delete $ret->{strptime_obj};
+
+ return $ret;
}
1;