Json.NET Documentation
Json.NET Documentation
API Reference
Newtonsoft.Json.Linq
JToken Class
JToken Methods
FromObject Method
FromObject Method (Object)
FromObject Method (Object, JsonSerializer)
JToken
FromObject Method (Object, JsonSerializer)
Creates a
JToken
from an object using the specified
JsonSerializer
.
Namespace:
Newtonsoft.Json.Linq
Assembly:
Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 12.0.1+509643a8952ce731e0207710c429ad6e67dc43db
Syntax
C#
Copy
public
static
JToken
FromObject
(
Object
o
,
JsonSerializer
jsonSerializer
)
Parameters
o
Type:
System
Object
The object that will be used to create
JToken
.
jsonSerializer
Type:
Newtonsoft.Json
JsonSerializer
The
JsonSerializer
that will be used when reading the object.
Return Value
Type:
JToken
A
JToken
with the value of the specified object.
See Also
Reference
JToken Class
FromObject Overload
Newtonsoft.Json.Linq Namespace
Json.NET Home