fromJsonOrNull

fun fromJsonOrNull(inputJson: String, spatialReference: SpatialReference?): Geometry?

Creates a geometry from an ArcGIS JSON geometry representation. Geometry can be serialized and de-serialized to and from JSON. The ArcGIS REST API documentation describes the JSON representation of geometry objects. You can use this encoding and decoding mechanism to exchange geometries with REST Web services or to store them in text files.

Return

a Geometry converted from a JSON String, or null if JSON deserialization failed

Since

200.1.0

Parameters

inputJson

JSON representation of geometry.

spatialReference

The geometry's spatial reference.