Closed Varveyn closed 10 months ago
Hi @Varveyn, I'm currently working on a big redesign of the library in this PR:
The main idea is to make the library much more maintainable while also giving people a mechanism to customise the generated IDs as much as they like.
I've included this fix as part of that redesign!
Since https://github.com/dotnet/runtime/issues/46520 has been implemented, the
JsonConverter
now has theReadAsPropertyName
andWriteAsPropertyName
methods, which could be used to allow using strongly-typed IDs as dictionary keys during the (de)serialization. Would be great to have this behavior out-of-the-box.