Skip to content

Add thread-safety documentation to JsonSerializer class page#12715

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/document-jsonserializer-thread-safety
Draft

Add thread-safety documentation to JsonSerializer class page#12715
Copilot wants to merge 2 commits into
mainfrom
copilot/document-jsonserializer-thread-safety

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jun 5, 2026

The JsonSerializer class page lacks explicit thread-safety documentation. While the conceptual docs mention the serializer was designed with thread safety in mind, this information should be directly on the API reference page per standard .NET documentation practice.

  • Added <threadsafe> element to JsonSerializer.xml following the established pattern used by ConcurrentDictionary, ConcurrentQueue, etc.
  • Documents that all public static members are thread-safe
  • Calls out the JsonSerializerOptions caveat: instances are not thread-safe during initial mutable configuration, but are safe to share once made read-only (e.g., after being passed to a serializer method)

Copilot AI changed the title [WIP] Document thread safety of JsonSerializer class Add thread-safety documentation to JsonSerializer class page Jun 5, 2026
Copilot AI requested a review from eiriktsarpalis June 5, 2026 08:39
@github-actions github-actions Bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners

Projects

None yet

Development

Successfully merging this pull request may close these issues.

JsonSerializer: Document on class page whether it is thread-safe

2 participants