Click or drag to resize
Json.NET

JObjectFromObject Method (Object, JsonSerializer)

 
Creates a JObject from an object.

Namespace:  Newtonsoft.Json.Linq
Assembly:  Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 12.0.1+509643a8952ce731e0207710c429ad6e67dc43db
Syntax
C#
public static JObject FromObject(
	Object o,
	JsonSerializer jsonSerializer
)

Parameters

o
Type: SystemObject
The object that will be used to create JObject.
jsonSerializer
Type: Newtonsoft.JsonJsonSerializer
The JsonSerializer that will be used to read the object.

Return Value

Type: JObject
A JObject with the values of the specified object.
See Also