Sign in Join
FPDoc Onlineexperiment

TJSONData.GetPath function

Member of TJSONDatapublicIn unit fpJson

Get data by name.

Declaration

pascal
function GetPath(const APath: TJSONStringType): TJSONData

Arguments

APath

The path of the data element to retrieve.

Function result

The found data element.

Description

GetPath is identical to FindPath but raises an exception if no element was found. The exception message contains the piece of path that was not found.

Errors

An EJSON exception is raised if the path does not exist.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.