Skip to content

Conversation

@anandmeg
Copy link
Contributor

@anandmeg anandmeg commented Nov 14, 2025

Update the document to improve the section on using AI for serialization. Added details on handling nested and polymorphic types.


Internal previews

📄 File 🔗 Preview link
docs/standard/serialization/system-text-json/how-to.md How to write .NET objects as JSON (serialize)

Update the document to improve the section on using AI for serialization. Added details on handling nested and polymorphic types.
Copilot AI review requested due to automatic review settings November 14, 2025 18:37
@anandmeg anandmeg requested review from a team and gewarren as code owners November 14, 2025 18:37
@dotnetrepoman dotnetrepoman bot added this to the November 2025 milestone Nov 14, 2025
@dotnet-policy-service dotnet-policy-service bot added dotnet-fundamentals/svc community-contribution Indicates PR is created by someone from the .NET community. labels Nov 14, 2025
Copilot finished reviewing on behalf of anandmeg November 14, 2025 18:40
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR revises the AI section of the serialization documentation to better explain how to use AI tools for generating code that handles nested and polymorphic types. The changes update the section heading and provide a more detailed example prompt for GitHub Copilot.

Key Changes

  • Updated the heading to clarify focus on nested and polymorphic types
  • Expanded the example Copilot prompt to demonstrate generating code for hierarchical object structures with custom JsonConverter
  • Improved the link text for Visual Studio Code in the "See also" section

Copy link
Member

@BillWagner BillWagner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had a couple small comments, but this is good.

I'll let @gewarren review and approve.

Updated prompt to simplify serialization instructions and ensure proper formatting.
Copy link
Contributor

@adegeo adegeo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is looking much better. Here are some suggestions to push this through to the finish line. Thanks!

Co-authored-by: Andy (Steve) De George <[email protected]>
@anandmeg
Copy link
Contributor Author

@adegeo, @gewarren - is this good to go?
cc: @mijacobs

@gewarren gewarren enabled auto-merge (squash) November 19, 2025 01:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Indicates PR is created by someone from the .NET community. dotnet-fundamentals/svc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants