Skip to content

IJsonDocument.TryResolveJsonPointer Method

Definition

Namespace: Corvus.Text.Json.Internal
Assembly: Corvus.Text.Json.dll
Source: IJsonDocument.cs

TryResolveJsonPointer(ReadOnlySpan<byte>, int, TValue)

Try to resolve the given JSON pointer.

public abstract bool TryResolveJsonPointer<TValue>(ReadOnlySpan<byte> jsonPointer, int index, out TValue value)
    where TValue : struct, IJsonElement<TValue>

Type Parameters

Parameter Description
TValue The type of the target value.

Parameters

Name Type Description
jsonPointer ReadOnlySpan<byte> The JSON pointer to resolve.
index int The index of the element.
value TValue Providers the resolved value, if the pointer could be resolved.

Returns

bool

true if the pointer could be resolved, otherwise false.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

Collaborate with us on GitHub

The source for this content can be found on GitHub, where you can also create and review issues and pull requests.

Open an issue