FYI, this will be built into .NET 8, [see article here](https://startdebugging.net/2023/08/net-8-json-serialize-property-names-using-snake-case-and-kebab-case/)