From 2025083eab72cd052e263b4ce7b60e1133f4de17 Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Wed, 8 May 2024 10:45:23 -0400 Subject: [PATCH] Update src/JsonParseNodeFactory.cs Co-authored-by: Andrew Omondi --- src/JsonParseNodeFactory.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/JsonParseNodeFactory.cs b/src/JsonParseNodeFactory.cs index f693f2b..561d706 100644 --- a/src/JsonParseNodeFactory.cs +++ b/src/JsonParseNodeFactory.cs @@ -76,7 +76,7 @@ public async Task GetRootParseNodeAsync(string contentType, Stream c _ = content ?? throw new ArgumentNullException(nameof(content)); - using var jsonDocument = await JsonDocument.ParseAsync(content, cancellationToken: cancellationToken); + using var jsonDocument = await JsonDocument.ParseAsync(content, cancellationToken: cancellationToken).ConfigureAwait(false); return new JsonParseNode(jsonDocument.RootElement.Clone(), _jsonJsonSerializationContext); } }