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

System.ClientModel.Primitives.JsonPathReader

Reads a JsonPath expression and breaks it into tokens for processing. Follows RFC 9535 minus the filter expressions and wildcards, which are not supported in this implementation.
namespace System.ClientModel.Primitives { internal ref struct JsonPathReader { public JsonPathToken Current { get; } public JsonPathReader(string jsonPath); public JsonPathReader(ReadOnlySpan<byte> jsonPath); public bool Read(); public JsonPathToken Peek(); public ReadOnlySpan<byte> GetFirstProperty(); public ReadOnlySpan<byte> GetNextArray(); public bool Advance(ReadOnlySpan<byte> prefix); public bool Equals(JsonPathReader other); } }