->next; } } =head2 TO_JSON Hook for the L<JSON> module so that you can pass a Results object directly to encode_json(). Calls serialize() internally. =cut sub TO_JSON { my $self = shift;