You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
V3 uses System.Text.Json for json binding of function arguments instead of Json.Net used in V1 & V2. System.Text.Json has very different defaults, attributes and converters
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
ID: 1df5e2bd-489d-19b2-87d3-d993ebb82021
Version Independent ID: 9e9d9ded-8f40-22be-4654-48c87f2c59e8
@adrianm64 In ASP.NET Core 3.0, Newtonsoft.Json types used in Authentication APIs have been replaced with System.Text.Json types. Except for the following cases, basic usage of the Authentication packages remains unaffected.
Classes derived from the OAuth providers, such as those from aspnet-contrib.
So for now I will proceed with closure of this and If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.
Not sure what you replied to. What I meant was that this code
public class MyClass {
[JsonProperty("url")]
public Uri Url {get; set;}
}
[FunctionName("TestFunction")]
public async Task TestFunction([HttpTrigger(AuthorizationLevel.Function, "post", Route = null)] MyClass myClass, ...
Works in Azure functions V2 but not in V3 because the binding in V3 uses System.Text.Json which does not recognize the JsonProperty nor deserializes System.Uri without a converter.
(which is fine but it should be mentioned as a breaking change when upgrading)
V3 uses System.Text.Json for json binding of function arguments instead of Json.Net used in V1 & V2. System.Text.Json has very different defaults, attributes and converters
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: