This just started happening recently on code that hasn't changed (it's an external library from a nuget package).
If I do this:
var client = HttpClient()
var response = await client.PostAsJsonAsync("some url"), someObject);
it sends the object serialized as Json, but with "k__BackingField" for each property.
It was all working 100% for months. Something must have changed in the solution that's using that library but I'm not sure what.
I've searched and seen plenty of examples on how to fix this in a WebAPI project, but this is a windows app. I haven't seen anyway to change the configuration of the JsonSerializer that it uses.