toJson

Encodes a Geometry into a JSON string.

Return

The encoded JSON string.

Parameters

geometry

The object to encode.