diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2023-11-12 17:32:22 +0100 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2023-11-12 17:32:22 +0100 |
commit | de213f09e19af303c97bede3362654a8854aa1ed (patch) | |
tree | 93689a320a9b2d180d29417a8034f1c47579c8f6 /lib/Travel/Routing/DE/HAFAS | |
parent | 00c8fa4f0117197e5daed873ed761302474088b8 (diff) |
Location: Add TO_JSON function
Diffstat (limited to 'lib/Travel/Routing/DE/HAFAS')
-rw-r--r-- | lib/Travel/Routing/DE/HAFAS/Location.pm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Travel/Routing/DE/HAFAS/Location.pm b/lib/Travel/Routing/DE/HAFAS/Location.pm index 27b9dd2..aef6a52 100644 --- a/lib/Travel/Routing/DE/HAFAS/Location.pm +++ b/lib/Travel/Routing/DE/HAFAS/Location.pm @@ -30,6 +30,14 @@ sub new { return $ref; } +sub TO_JSON { + my ($self) = @_; + + my $ret = { %{$self} }; + + return $ret; +} + 1; __END__ |