Commit 7fdc8d20 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Result: TO_JSON: Do not include references (causes death by recursion otherwise)

parent 39a5d4f2
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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} };
}