ArcObjects Library Reference (System)  

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 _
)
[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

IJSONObject Interface