SerializeXNode Method (node, formatting)

Json.NET

Json.NET - Quick Starts & API Documentation SerializeXNode Method (node, formatting)
NamespacesNewtonsoft.JsonJsonConvertSerializeXNode(XObject, Formatting)
Serializes the XNode to a JSON string.
Declaration Syntax
C# Visual Basic Visual C++
public static string SerializeXNode(
	XObject node,
	Formatting formatting
)
Public Shared Function SerializeXNode ( _
	node As XObject, _
	formatting As Formatting _
) As String
public:
static String^ SerializeXNode(
	XObject^ node, 
	Formatting formatting
)
Parameters
node (XObject)
The node to convert to JSON.
formatting (Formatting)
Indicates how the output is formatted.
Return Value
A JSON string of the XNode.

Assembly: Newtonsoft.Json (Module: Newtonsoft.Json) Version: 4.5.0.0 (4.5.6.14930)