Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ public override LazyJson Read(ref Utf8JsonReader reader, Type typeToConvert, Jso
{
InitializeSettings(options);

#pragma warning disable IL2026, IL3050 // The `TypeInfoResolver` for `RequestResponseConverter` knows how to handle `JsonElement`.
return new LazyJson(JsonSerializer.Deserialize<JsonElement>(ref reader, options), _settings!);
#pragma warning restore IL2026, IL3050
return new LazyJson(JsonElement.ParseValue(ref reader), _settings!);
}

private void InitializeSettings(JsonSerializerOptions options)
Expand Down