JSON.ToJson method
Converts an object to its JSON representation (extension method for Stringify)
public static string ToJson(this object? value, bool writeNulls = false)
| parameter | description |
|---|---|
| value | Object |
| writeNulls | If true, serializes null values. |
Return Value
JSON representation string.
See Also
- class JSON