<PackageReference Include="System.Text.Json" Version="10.0.3" />

System.Runtime.InteropServices.JsonMarshal

public static class JsonMarshal
An unsafe class that provides a set of methods to access the underlying data representations of JSON types.
namespace System.Runtime.InteropServices { public static class JsonMarshal { public static ReadOnlySpan<byte> GetRawUtf8Value(JsonElement element); public static ReadOnlySpan<byte> GetRawUtf8PropertyName(JsonProperty property); } }