Skip to content

Commit 4d206c5

Browse files
authored
JsonDocument is not thread safe (#31508)
1 parent 0ef04c4 commit 4d206c5

File tree

1 file changed

+1
-18
lines changed
  • docs/standard/serialization/system-text-json

1 file changed

+1
-18
lines changed

docs/standard/serialization/system-text-json/overview.md

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -42,24 +42,7 @@ For information about security threats that were considered when designing <xref
4242

4343
## Thread safety
4444

45-
The `System.Text.Json` types are thread-safe, including:
46-
47-
:::zone pivot="dotnet-5-0,dotnet-core-3-1"
48-
49-
* <xref:System.Text.Json.JsonSerializer>
50-
* <xref:System.Text.Json.Utf8JsonReader>
51-
* <xref:System.Text.Json.Utf8JsonWriter>
52-
* <xref:System.Text.Json.JsonDocument>
53-
:::zone-end
54-
55-
:::zone pivot="dotnet-7-0,dotnet-6-0"
56-
57-
* <xref:System.Text.Json.JsonSerializer>
58-
* <xref:System.Text.Json.Utf8JsonReader>
59-
* <xref:System.Text.Json.Utf8JsonWriter>
60-
* <xref:System.Text.Json.JsonDocument>
61-
* <xref:System.Text.Json.Nodes.JsonNode>
62-
:::zone-end
45+
The `System.Text.Json` serializer was designed with thread safety in mind. Practically, this means that once locked, <xref:System.Text.Json.JsonSerializerOptions> instances can be safely shared across multiple threads.
6346

6447
## Additional resources
6548

0 commit comments

Comments
 (0)