<PackageReference Include="System.ClientModel" Version="1.8.0" />

System.ClientModel.Primitives.JsonPathExtensions

static class JsonPathExtensions
namespace System.ClientModel.Primitives { internal static class JsonPathExtensions { public static int ConvertToJsonPointer(this byte[] jsonPath, Span<byte> buffer, bool isArrayAppend = false); public static ReadOnlySpan<byte> GetPropertyName(this byte[] jsonPath); public static ReadOnlySpan<byte> GetFirstNonIndexParent(this byte[] jsonPath); public static bool IsArrayIndex(this byte[] jsonPath); public static bool IsArrayIndex(this ReadOnlySpan<byte> jsonPath); public static ReadOnlySpan<byte> GetFirstProperty(this ReadOnlySpan<byte> jsonPath); public static ReadOnlySpan<byte> GetPropertyNameFromSlice(this ReadOnlySpan<byte> slice); public static ReadOnlySpan<byte> GetPropertyName(this ReadOnlySpan<byte> jsonPath); public static ReadOnlySpan<byte> GetParent(this byte[] jsonPath); public static ReadOnlySpan<byte> GetParent(this ReadOnlySpan<byte> jsonPath); public static ReadOnlySpan<byte> GetIndexSpan(this byte[] jsonPath); public static ReadOnlySpan<byte> GetIndexSpan(this ReadOnlySpan<byte> jsonPath); public static bool IsRoot(this byte[] jsonPath); public static bool IsRoot(this Span<byte> jsonPath); public static bool IsRoot(this ReadOnlySpan<byte> jsonPath); public static byte[] Remove(this ReadOnlyMemory<byte> json, ReadOnlySpan<byte> jsonPath); public static byte[] Set(this ReadOnlyMemory<byte> json, ReadOnlySpan<byte> jsonPath, ReadOnlyMemory<byte> jsonReplacement); public static byte[] SetCurrentValue(this Utf8JsonReader jsonReader, bool wasFound, ReadOnlySpan<byte> propertyName, ReadOnlyMemory<byte> json, ReadOnlyMemory<byte> jsonReplacement); public static byte[] InsertAt(this ReadOnlyMemory<byte> json, ReadOnlySpan<byte> arrayPath, ReadOnlyMemory<byte> jsonToInsert); public static byte[] Append(this ReadOnlyMemory<byte> json, ReadOnlySpan<byte> arrayPath, ReadOnlyMemory<byte> jsonToInsert); public static bool TryGetJson(this ReadOnlyMemory<byte> json, ReadOnlySpan<byte> jsonPath, out ReadOnlyMemory<byte> target); public static ReadOnlyMemory<byte> GetJson(this ReadOnlyMemory<byte> json, ReadOnlySpan<byte> jsonPath); public static int GetArrayLength(ref Utf8JsonReader jsonReader, ReadOnlySpan<byte> arrayPath); public static bool Advance(ref Utf8JsonReader jsonReader, ReadOnlySpan<byte> jsonPath, ref Utf8JsonReader last); public static bool Advance(ref Utf8JsonReader jsonReader, ReadOnlySpan<byte> jsonPath); public static bool Advance(ref Utf8JsonReader jsonReader, ref JsonPathReader pathReader); public static bool Advance(ref Utf8JsonReader jsonReader, ref JsonPathReader pathReader, ref Utf8JsonReader last); } }