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