FromObject Method (o, jsonSerializer)

Json.NET

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

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