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

In This Topic
    FromJson Method (EnvelopeBuilderEx)
    In This Topic
    Creates a new instance of the Envelope class from an ArcGIS JSON geometry representation.
    Syntax
    public static Envelope FromJson( 
       string jsonString
    )
    Public Shared Function FromJson( _
       ByVal jsonString As String _
    ) As Envelope

    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