toJson

Encodes a GeoJsonObject into a JSON string.

The restrictions described in org.maplibre.spatialk.geojson.toJson apply.

Return

The encoded JSON string.

Parameters

geoJsonObject

The object to encode.

Throws

if serialization fails.