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

System.Text.Json.JsonHelpers

static class JsonHelpers
namespace System.Text.Json { internal static class JsonHelpers { public static readonly Regex IntegerRegex; public static T[] TraverseGraphWithTopologicalSort<T>(T entryNode, Func<T, ICollection<T>> getChildren, IEqualityComparer<T> comparer = null); public static ReadOnlySpan<byte> GetUnescapedSpan(ref Utf8JsonReader reader); public static bool TryAdvanceWithOptionalReadAhead(ref Utf8JsonReader reader, bool requiresReadAhead); public static bool TryAdvanceToNextRootLevelValueWithOptionalReadAhead(ref Utf8JsonReader reader, bool requiresReadAhead, out bool isAtEndOfStream); public static bool IsInRangeInclusive(uint value, uint lowerBound, uint upperBound); public static bool IsInRangeInclusive(int value, int lowerBound, int upperBound); public static bool IsInRangeInclusive(long value, long lowerBound, long upperBound); public static bool IsDigit(byte value); public static void ReadWithVerify(ref Utf8JsonReader reader); public static void SkipWithVerify(ref Utf8JsonReader reader); public static bool TrySkipPartial(ref Utf8JsonReader reader); public static string Utf8GetString(ReadOnlySpan<byte> bytes); public static bool TryLookupUtf8Key<TValue>(this Dictionary<string, TValue> dictionary, ReadOnlySpan<byte> utf8Key, out TValue result); public static bool IsFinite(double value); public static bool IsFinite(float value); public static void ValidateInt32MaxArrayLength(uint length); public static bool AreEqualJsonNumbers(ReadOnlySpan<byte> left, ReadOnlySpan<byte> right); public static bool IsValidDateTimeOffsetParseLength(int length); public static bool IsValidUnescapedDateTimeOffsetParseLength(int length); public static bool TryParseAsISO(ReadOnlySpan<byte> source, out DateTime value); public static bool TryParseAsISO(ReadOnlySpan<byte> source, out DateTimeOffset value); public static bool TryParseAsIso(ReadOnlySpan<byte> source, out DateOnly value); public static byte[] GetEscapedPropertyNameSection(ReadOnlySpan<byte> utf8Value, JavaScriptEncoder encoder); public static byte[] EscapeValue(ReadOnlySpan<byte> utf8Value, int firstEscapeIndexVal, JavaScriptEncoder encoder); } }