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

Misleading "Applies to" Section for Json Serialization #9868

Closed
mariesophie opened this issue May 2, 2024 · 6 comments
Closed

Misleading "Applies to" Section for Json Serialization #9868

mariesophie opened this issue May 2, 2024 · 6 comments
Assignees
Labels
area-System.Text.Json Pri3 Indicates issues/PRs that are low priority

Comments

@mariesophie
Copy link

I wanted to use the JsonDerivedType or JsonPolymorphic attribute in a .NET 6 project. So I looked it up at the docs (see links) and was happy, because they are listed as available since .NET 6.
I tried, but couldn't even get the code to compile. Finally, I found the Learn .NET section about json serialization again, where both of them seem to be available only in .NET 7 or later.

Is there a way to get the attributes working in .NET 6, is my understanding of the "applies to" section skewed or is it a mishap in the documentation?

@issues-automation issues-automation bot added the Pri3 Indicates issues/PRs that are low priority label May 2, 2024
@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label May 2, 2024
@gewarren
Copy link
Contributor

gewarren commented May 2, 2024

@mariesophie For .NET 6, the APIs are available through the following package: https://www.nuget.org/packages/System.Text.Json/8.0.3.

@gewarren gewarren self-assigned this May 2, 2024
@gewarren
Copy link
Contributor

gewarren commented May 2, 2024

Related to #8405, #9771.

@mariesophie
Copy link
Author

Oh, thanks, that's good to know. I like your proposal, which clarifies whether the attribute (in this case) or whatever function is builtin or package-provided.
One of the referenced links also guided me to the APIs of .net catalog, which is another help.

@gewarren
Copy link
Contributor

gewarren commented May 3, 2024

@mariesophie Thanks for reminding me that there's still some work needed in the Applies to section. I've logged an internal work item for that.

@carlossanlop
Copy link
Member

Since we have an internal work item, I think it's safe to close this issue. @mariesophie thanks for reporting the issue, please open a new one if you have additional questions.

@carlossanlop carlossanlop added area-System.Text.Json and removed untriaged New issue has not been triaged by the area owner area-System.Runtime labels May 7, 2024
Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-system-text-json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.Text.Json Pri3 Indicates issues/PRs that are low priority
Projects
None yet
Development

No branches or pull requests

3 participants