Group
Extension

Matches 1

Geo-Gpx ( P/PA/PATJOL/Geo-Gpx-1.11.tar.gz, PATJOL, 2024; MetaCPAN )
Geo-Gpx/lib/Geo/Gpx.pm ( view source; MetaCPAN )
 '', @ret )
}

=item TO_JSON

For compatibility with L<JSON> modules. Convert this object to a hash with keys that correspond to the above methods. Generated ala:

    my %json = map { $_ => $self->$_
ersion );
    $json{bounds} = $self->bounds( $iter );

With one difference: the keys will only be set if they are defined.

=back

=cut

sub TO_JSON {
    my $self = shift;
    my %json;    #= map {$_
 $val = $self->$key;
        $json{$key} = $val if defined $val
    }
    if ( my $bounds = $self->bounds ) {
        $json{bounds} = $self->bounds
    }
    return \%json
}

=over 4

=item save( file

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.