bcuff / GeocodeSharp

An async .NET client for the Google geocode API
Apache License 2.0
10 stars 20 forks source link

Add support for System.Text.Json attributes #20

Closed oobayly closed 1 year ago

oobayly commented 1 year ago

When the results are serialized using System.Text.Json, the property names aren't mapped back to the Google property names.

A solution would be to add in a System.Text.Json.Serialization.JsonPropertyNameAttribute for all the properties along side the Newtonsoft.Json.JsonPropertyAttribute.

Would this be something that could be included? If so, I'll get a PR put together.