From 7fdc8d20ca694307df44f38ac9ac02510188fab0 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 29 Apr 2015 18:23:52 +0200 Subject: Result: TO_JSON: Do not include references (causes death by recursion otherwise) --- lib/Travel/Status/DE/IRIS/Result.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/Travel/Status/DE/IRIS/Result.pm b/lib/Travel/Status/DE/IRIS/Result.pm index ea96c55..daeb4b6 100644 --- a/lib/Travel/Status/DE/IRIS/Result.pm +++ b/lib/Travel/Status/DE/IRIS/Result.pm @@ -726,6 +726,12 @@ sub translate_msg { sub TO_JSON { my ($self) = @_; + my %copy = %{$self}; + delete $copy{arrival_wings}; + delete $copy{departure_wings}; + delete $copy{replaced_by}; + delete $copy{replacement_for}; + return { %{$self} }; } -- cgit v1.2.3