Table of Contents

Interface IJsonSerializable

Namespace
Xunit.Sdk

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 null if the object cannot be represented in JSON form.