Pointer

Native Pascal, workflow preparation

Description

Resolves a JSON Pointer path against this value and returns the addressed node. An empty path returns the value itself; tokens are separated by slashes, with ~0 standing for a literal tilde and ~1 for a literal slash, so for example /a~1b/~0/0 selects the first array element under the object keys a/b and ~.

Objects resolve each token as a member name; arrays resolve it as a zero-based index without leading zeros. Nil is returned when the path is malformed, longer than 32 Mi of UTF-16 code units, or does not resolve.

Syntax

Delphi

Function TPLWorkflowJSON.Pointer(Const Path: WideString): TPLWorkflowJSON;

Parameters

PathJSON Pointer path to resolve

Return values

TPLWorkflowJSONThe addressed node, or Nil when the path does not resolve

See also

WorkflowDataTools, ProbeWorkflowRequest