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

JsonPathComparer

public byte[] Create(ReadOnlySpan<byte> alternate)

public bool Equals(byte[] x, byte[] y)

public bool Equals(ReadOnlySpan<byte> alternate, byte[] other)

public int GetHashCode(byte[] obj)

public int GetHashCode(ReadOnlySpan<byte> alternate)

public int GetNormalizedHashCode(ReadOnlySpan<byte> jsonPath)

public void Normalize(ReadOnlySpan<byte> jsonPath, Span<byte> buffer, out int bytesWritten)

There are multiple ways to represent a JSON path. This method normalizes the JSON path to a canonical form that can be used for comparison. As an example $.x is the same as $['x'] and also the same as $["x"]. This method will convert all of these to $.x. In the event that the property name contains a dot that single property will use ['x.y'] format to represent the property name with a dot in it.

public bool NormalizedEquals(ReadOnlySpan<byte> x, ReadOnlySpan<byte> y)