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

JsonWriterHelper

static class JsonWriterHelper
public const int LastAsciiCharacter = 127

public static void EscapeString(ReadOnlySpan<byte> value, Span<byte> destination, int indexOfFirstByteToEscape, JavaScriptEncoder encoder, out int written)

public static void EscapeString(ReadOnlySpan<char> value, Span<char> destination, int indexOfFirstByteToEscape, JavaScriptEncoder encoder, out int written)

public static int GetMaxEscapedLength(int textLength, int firstIndexToEscape)

public static bool IsValidUtf8String(ReadOnlySpan<byte> bytes)

public static int NeedsEscaping(ReadOnlySpan<byte> value, JavaScriptEncoder encoder)

public static int NeedsEscaping(ReadOnlySpan<char> value, JavaScriptEncoder encoder)

public static void TrimDateTimeOffset(Span<byte> buffer, out int bytesWritten)

public static void ValidateDouble(double value)

public static void ValidateIndentCharacter(char value)

public static void ValidateIndentSize(int value)

public static void ValidateNewLine(string value)

public static void ValidateProperty(ReadOnlySpan<byte> propertyName)

public static void ValidateProperty(ReadOnlySpan<char> propertyName)

public static void ValidatePropertyAndValue(ReadOnlySpan<char> propertyName, ReadOnlySpan<byte> value)

public static void ValidatePropertyAndValue(ReadOnlySpan<byte> propertyName, ReadOnlySpan<char> value)

public static void ValidatePropertyAndValue(ReadOnlySpan<byte> propertyName, ReadOnlySpan<byte> value)

public static void ValidatePropertyAndValue(ReadOnlySpan<char> propertyName, ReadOnlySpan<char> value)

public static void ValidatePropertyNameLength(ReadOnlySpan<char> propertyName)

public static void ValidatePropertyNameLength(ReadOnlySpan<byte> propertyName)

public static void ValidateSingle(float value)

public static void ValidateValue(ReadOnlySpan<byte> value)

public static void ValidateValue(ReadOnlySpan<char> value)

public static void WriteDateTimeOffsetTrimmed(Span<byte> buffer, DateTimeOffset value, out int bytesWritten)

public static void WriteDateTimeTrimmed(Span<byte> buffer, DateTime value, out int bytesWritten)

public static void WriteIndentation(Span<byte> buffer, int indent, byte indentByte)