Click or drag to resize
Json.NET

JsonConvertSerializeXNode Method (XObject)

 
Serializes the XNode to a JSON string.

Namespace:  Newtonsoft.Json
Assembly:  Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 12.0.1+509643a8952ce731e0207710c429ad6e67dc43db
Syntax
C#
public static string SerializeXNode(
	XObject node
)

Parameters

node
Type: System.Xml.LinqXObject
The node to convert to JSON.

Return Value

Type: String
A JSON string of the XNode.
See Also