fromJson

@JvmName(name = "inlineFromJson")
inline fun <G : Geometry?, P> fromJson(@Language(value = "json") json: String): FeatureCollection<G, P>(source)

Deserializes a FeatureCollection from a JSON string.

Return

The deserialized FeatureCollection.

Parameters

json

The JSON string to deserialize.

Throws

if the JSON string is invalid or cannot be deserialized.

if the JSON contains an invalid FeatureCollection.