<PackageReference Include="System.Text.Json" Version="4.6.0-preview6.19264.9" />

JsonSerializer

public static class JsonSerializer
public static TValue Parse<TValue>(string json, JsonSerializerOptions options = null)

public static object Parse(string json, Type returnType, JsonSerializerOptions options = null)

public static TValue Parse<TValue>(ReadOnlySpan<byte> utf8Json, JsonSerializerOptions options = null)

public static object Parse(ReadOnlySpan<byte> utf8Json, Type returnType, JsonSerializerOptions options = null)

public static ValueTask<TValue> ReadAsync<TValue>(Stream utf8Json, JsonSerializerOptions options = null, CancellationToken cancellationToken = default)

public static ValueTask<object> ReadAsync(Stream utf8Json, Type returnType, JsonSerializerOptions options = null, CancellationToken cancellationToken = default)

public static byte[] ToBytes<TValue>(TValue value, JsonSerializerOptions options = null)

public static byte[] ToBytes(object value, Type type, JsonSerializerOptions options = null)

public static string ToString<TValue>(TValue value, JsonSerializerOptions options = null)

public static string ToString(object value, Type type, JsonSerializerOptions options = null)

public static Task WriteAsync<TValue>(TValue value, Stream utf8Json, JsonSerializerOptions options = null, CancellationToken cancellationToken = default)

public static Task WriteAsync(object value, Type type, Stream utf8Json, JsonSerializerOptions options = null, CancellationToken cancellationToken = default)