FromObject Method (o, jsonSerializer)

Json.NET

Json.NET - Quick Starts & API Documentation FromObject Method (o, jsonSerializer)
NamespacesNewtonsoft.Json.LinqJTokenFromObject(Object, JsonSerializer)
Creates a JToken from an object using the specified JsonSerializer.
Declaration Syntax
C# Visual Basic Visual C++
public static JToken FromObject(
	Object o,
	JsonSerializer jsonSerializer
)
Public Shared Function FromObject ( _
	o As Object, _
	jsonSerializer As JsonSerializer _
) As JToken
public:
static JToken^ FromObject(
	Object^ o, 
	JsonSerializer^ jsonSerializer
)
Parameters
o (Object)
The object that will be used to create JToken.
jsonSerializer (JsonSerializer)
The JsonSerializer that will be used when reading the object.
Return Value
A JToken with the value of the specified object

Assembly: Newtonsoft.Json (Module: Newtonsoft.Json) Version: 4.0.2.0 (4.0.2.13623)