-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Closed
Labels
api-suggestionEarly API idea and discussion, it is NOT ready for implementationEarly API idea and discussion, it is NOT ready for implementationarea-System.Text.Json
Milestone
Description
This is a placeholder issue to expose the internal JsonSerializer mechanism for supporting non-string primitives as dictionary keys. This will allow custom (user-provided) converters to handle them. This involves making these two virtual methods public:
runtime/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonConverterOfT.cs
Lines 542 to 546 in cbc6aa6
| internal virtual T ReadWithQuotes(ref Utf8JsonReader reader) | |
| => throw new InvalidOperationException(); | |
| internal virtual void WriteWithQuotes(Utf8JsonWriter writer, [DisallowNull] T value, JsonSerializerOptions options, ref WriteStack state) | |
| => throw new InvalidOperationException(); |
Metadata
Metadata
Assignees
Labels
api-suggestionEarly API idea and discussion, it is NOT ready for implementationEarly API idea and discussion, it is NOT ready for implementationarea-System.Text.Json