Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[.NET] Allow for System.Text.Json types in HTTP Trigger Binding #8976

Closed
brandonh-msft opened this issue Dec 13, 2022 · 2 comments
Closed

[.NET] Allow for System.Text.Json types in HTTP Trigger Binding #8976

brandonh-msft opened this issue Dec 13, 2022 · 2 comments
Assignees

Comments

@brandonh-msft
Copy link
Member

brandonh-msft commented Dec 13, 2022

What problem would the feature you're requesting solve? Please describe.

I tried to use System.Text.Json.JsonDocument as the binding type for HttpTrigger in in-proc Functions v4 (.NET 6) and was met with a serialization error ("no default constructor"). As we support Newtonsoft.Json types here (e.g. JObject), we should also support STJ types.

Describe the solution you'd like

Allow for, at minimum, System.Text.Json.JsonDocument support.

Describe alternatives you've considered

One can, of course, use HttpRequest and manually .Parse() the content of it, but that's always been possible and shouldn't be an excuse for not supporting our own JSON object model as a serialization target (as this "workaround" could similarly argue that no types outside HttpRequest should be implemented).

@jviau
Copy link
Contributor

jviau commented Jul 26, 2023

I don't believe we have any plans to invest in adding STJ support to in-proc.

@fabiocav, @brettsam for additional comment.

@aishwaryabh
Copy link
Contributor

No plans to add STJ support to in proc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants