Method ToJson
ToJson<T>(T)
Serializes a value as JSON.
public static string ToJson<T>(T value)
Parameters
valueTThe value to serialize.
Returns
- string
A JSON string representing the value.
Type Parameters
TThe type of the value to serialize.
Serializes a value as JSON.
public static string ToJson<T>(T value)
value TThe value to serialize.
A JSON string representing the value.
TThe type of the value to serialize.