This document is archived and information here might be outdated.  Recommended version.


IJSONArray.ToJSON Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (System)  

IJSONArray.ToJSON Method

Converts IJSONArray to JSON representation using provided IJSONWriter. Useful when you have complex JSON response you want to combine from the output of several methods.

[Visual Basic .NET]
Public Sub ToJSON ( _
    ByVal objectName As String, _
    ByVal pWriter As IJSONWriter _
)
[C#]
public void ToJSON (
    string objectName,
    IJSONWriter pWriter
);
[C++]
HRESULT ToJSON(
  BSTR objectName,
  IJSONWriter* pWriter
);
[C++]

Parameters objectName [in]
objectName is a parameter of type BSTR pWriter [in]
pWriter is a parameter of type IJSONWriter*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also

IJSONArray Interface