Interface IJsonSerializable
Interface that indicates an object can be serialized to JSON.
public interface IJsonSerializable
- Extension Methods
Methods
ToJson()
Converts the given object to JSON.
string? ToJson()
Returns
- string
Returns the object in JSON form, if possible; returns
nullif the object cannot be represented in JSON form.