Geo::JSON::Role::ToJson
Provides the to_json method.
to_json
$point->to_json(); # or with custom JSON codec $point->to_json( $codec );
Returns JSON string representing this object.
To install Geo::JSON, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Geo::JSON
CPAN shell
perl -MCPAN -e shell install Geo::JSON
For more information on module installation, please visit the detailed CPAN module installation guide.