JsonPatch.TryGetJson Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.