System.JSON.TJSONArray.FindValue
Delphi
function FindValue(const APath: string): TJSONValue; override;
C++
virtual TJSONValue* __fastcall FindValue(const System::UnicodeString APath);
Properties
| Type | Visibility | Source | Unit | Parent | 
|---|---|---|---|---|
| function | protected | System.JSON.pas System.JSON.hpp | System.JSON | TJSONArray | 
Description
Finds and returns a TJSONValue instance located at the specified APath JSON path. Otherwise, returns  nil.
Supported JSON Path Syntax
FindValue uses TJSONPathParser to parse the specified JSON path.
TJSONPathParser implements a subset of the JSON path specification defined by Stefan Göessner. Specifically, supported elements are:
- Child operators for objects:
- Use .to access object properties that do not contain a dot in their name. For example, useroot.childto access thechildproperty of therootobject.
- Use []to access object properties that do contain a quoting character in their name. For example, useroot['child.name']orroot["child.name"]to access thechild.nameproperty of therootobject.
 
- Use 
- Subscript operator ([]) for arrays. For example, useroot[0]to access the first item of therootarray.
These operators do not support special expressions, they only support actual values (object properties or array indexes).