ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Geometry Namespace / EnvelopeBuilderEx Class / FromJson Method
JSON representation of an envelope.
Example Version

FromJson Method (EnvelopeBuilderEx)
Creates a new instance of the Envelope class from an ArcGIS JSON geometry representation.
Syntax
public static Envelope FromJson( 
   string jsonString
)

Parameters

jsonString
JSON representation of an envelope.

Return Value

Exceptions
ExceptionDescription
The jsonString is empty or null.
JSON string is invalid or does not represent an Envelope string.
Example
Construct an Envelope - from a JSON string
string jsonString = "{ \"xmin\" : 1, \"ymin\" : 2,\"xmax\":3,\"ymax\":4,\"spatialReference\":{\"wkid\":4326}}";
Envelope envFromJson = EnvelopeBuilderEx.FromJson(jsonString);
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also