ArcGIS Pro 2.7 API Reference Guide
AsJson Method

ArcGIS.Desktop.Mapping Namespace > LayerDocument Class : AsJson Method
Create a json encoding for the ArcGIS.Core.CIM.CIMLayerDocument and its current state.
Syntax
public string AsJson()
Public Function AsJson() As String

Return Value

A json encoded string.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

LayerDocument Class
LayerDocument Members