<PackageReference Include="System.Text.Json" Version="11.0.0-preview.2.26159.112" />

System.Text.Json.JsonHelpers

static class JsonHelpers
namespace System.Text.Json { internal static class JsonHelpers { public static Regex IntegerRegex { get; } public static bool TryAdd<TKey, TValue>(this Dictionary<TKey, TValue> dictionary, TKey key, TValue value); public static bool TryAdd<TKey, TValue>(this IDictionary<TKey, TValue> dictionary, TKey key, TValue value); public static bool TryDequeue<T>(this Queue<T> queue, out T result); 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 IsValidUnicodeScalar(uint value); 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 IsInRangeInclusive(JsonTokenType value, JsonTokenType lowerBound, JsonTokenType 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 bool TryLookupUtf8Key<TValue>(this Dictionary<string, TValue> dictionary, ReadOnlySpan<byte> utf8Key, out TValue result); public static Dictionary<TKey, TValue> CreateDictionaryFromCollection<TKey, TValue>(IEnumerable<KeyValuePair<TKey, TValue>> collection, IEqualityComparer<TKey> comparer); public static bool IsFinite(double value); public static bool IsFinite(float value); public static void ValidateInt32MaxArrayLength(uint length); public static bool HasAllSet(this BitArray bitArray); 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 byte[] GetEscapedPropertyNameSection(ReadOnlySpan<byte> utf8Value, JavaScriptEncoder encoder); public static byte[] EscapeValue(ReadOnlySpan<byte> utf8Value, int firstEscapeIndexVal, JavaScriptEncoder encoder); } }