diff --git a/src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.To.cs b/src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.To.cs index ed716927856a87..c087b5f4d44ce6 100644 --- a/src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.To.cs +++ b/src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.To.cs @@ -6,7 +6,7 @@ namespace System.Text.Json.Nodes public abstract partial class JsonNode { // linker-safe default JsonSerializerOptions instance used by JsonNode methods. - private protected readonly JsonSerializerOptions s_defaultOptions = new(); + private protected static readonly JsonSerializerOptions s_defaultOptions = new(); /// /// Converts the current instance to string in JSON format.