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


IJSONArray.ToJSON Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > System > ESRI.ArcGIS.esriSystem > Interfaces > IJ > IJSONArray Interface > IJSONArray.ToJSON Method
ArcGIS Developer Help

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