fromJson

fun fromJson(@Language(value = "json") json: String): GeoJsonObject(source)

Decodes a JSON string into a GeoJsonObject.

Return

The decoded GeoJsonObject.

Parameters

json

The JSON string to decode.

Throws

if the JSON string is invalid or cannot be deserialized.

if the JSON contains an invalid GeoJsonObject.