<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="8.19.1" />

Microsoft.IdentityModel.Tokens.Json.JsonWebKeySetSerializer

public static JsonWebKeySet Read(string json, JsonWebKeySet jsonWebKeySet)

public static JsonWebKeySet Read(ref Utf8JsonReader reader, JsonWebKeySet jsonWebKeySet)

Reads a JsonWebKey. see: https://datatracker.ietf.org/doc/html/rfc7517

public static void ReadKeys(ref Utf8JsonReader reader, JsonWebKeySet jsonWebKeySet)

public static string Write(JsonWebKeySet jsonWebKeySet)

public static void Write(ref Utf8JsonWriter writer, JsonWebKeySet jsonWebKeySet)

This method will be used when reading OIDC metadata