duosecurity / duo_api_csharp

Other
32 stars 31 forks source link

Replace JSON serialization with System.Text.Json #32

Closed AaronAtDuo closed 9 months ago

AaronAtDuo commented 11 months ago

Detailed Description

The API client currently (https://github.com/duosecurity/duo_api_csharp/blob/master/duo_api_csharp/Duo.cs#L389) uses System.Web.Script.Serialization.JavaScriptSerializer but System.Text.Json would be a better choice.

Use Case

JavaScriptSerializer is deprecated and interferes with efforts to target more modern .net runtimes

Workarounds

None

AaronAtDuo commented 9 months ago

Resolved by https://github.com/duosecurity/duo_api_csharp/pull/34