Skip to content

Feat/value list dict json support#315

Merged
AnakinRaW merged 3 commits into
developfrom
feat/value-list-dict-json-support
Jun 21, 2026
Merged

Feat/value list dict json support#315
AnakinRaW merged 3 commits into
developfrom
feat/value-list-dict-json-support

Conversation

@AnakinRaW

Copy link
Copy Markdown
Owner

No description provided.

…erter

Read and write keys through the JsonConverter<T> that the options resolve
for the key type (ReadAsPropertyName/WriteAsPropertyName) instead of
Convert.ToString/Convert.ChangeType. This adds support for Guid, enum,
bool, floating-point and every other built-in dictionary key type, applies
DictionaryKeyPolicy to all keys, and makes complex keys work on the same
terms as a normal Dictionary<,> (via a custom key converter). Repeated
property names now collapse to last-wins at the original position.

Expand the tests to mirror the runtime's CustomConverterTests: a key/value
type matrix (string, int, Guid, enum, bool, double, complex values), all
eight concrete and interface variants, and read edge cases (null root,
empty object, empty/null value lists, duplicate keys, non-object root).
Add shared scenario tests that run identically against both converter
registration and [JsonConverter] attribute usage.
@AnakinRaW AnakinRaW merged commit ede7c7a into develop Jun 21, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant