Microsoft.IdentityModel.Tokens.Json.JsonSerializerPrimitives
public static JsonException CreateJsonReaderException(ref Utf8JsonReader reader, string expectedType, string className, string propertyName, Exception innerException = null)
Creates a JsonException that provides information on what went wrong.
public static Exception CreateJsonReaderExceptionInvalidType(ref Utf8JsonReader reader, string expectedType, string className, string propertyName)
Writes an object as a JsonProperty.
This was written to support what IdentityModel6x supported and is not meant to be a
general object serializer.
If a user needs to serialize a special value, then serialize the value into a JsonElement.
Writes values into an array.
Assumes the writer.StartArray() has been called.
public static void WriteStrings(ref Utf8JsonWriter writer, ReadOnlySpan<byte> propertyName, IList<string> strings)
public static void WriteStrings(ref Utf8JsonWriter writer, ReadOnlySpan<byte> propertyName, ICollection<string> strings)
public static void WriteStrings(ref Utf8JsonWriter writer, ReadOnlySpan<byte> propertyName, IList<string> strings, string extraString)