Share via


JsonPatch.TryGetJson Method

Definition

Tries to get the Utf8 JSON value at the specified JSON path.

public bool TryGetJson(ReadOnlySpan<byte> jsonPath, out ReadOnlyMemory<byte> value);
member this.TryGetJson : ReadOnlySpan<byte> * ReadOnlyMemory -> bool
Public Function TryGetJson (jsonPath As ReadOnlySpan(Of Byte), ByRef value As ReadOnlyMemory(Of Byte)) As Boolean

Parameters

jsonPath
ReadOnlySpan<Byte>

The JSON path of the value to get.

value
ReadOnlyMemory<Byte>

The value if found.

Returns

True if the value was found and parsed; otherwise, false.

Applies to