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

IJSONObject.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 > IJSONObject Interface > IJSONObject.ToJSON Method
ArcGIS Developer Help

IJSONObject.ToJSON Method

Converts IJSONObject 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 _
public void ToJSON (
    string objectName,
    IJSONWriter pWriter
  BSTR objectName,
  IJSONWriter* pWriter
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

IJSONObject Interface