System.JSON.TJSONPathParser.Create
Delphi
constructor Create(const APath: string);
C++
__fastcall TJSONPathParser(const System::UnicodeString APath);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
constructor | public | System.JSON.pas System.JSON.hpp |
System.JSON | TJSONPathParser |
Description
Creates an instance of TJSONPathParser to iterate through the elements of the specified JSON path.
Supported JSON Path Syntax
TJSONPathParser implements a subset of the JSON path specification defined by Stefan Göessner. Specifically, supported elements are child operators (.
) for objects and subscript operators ([]
) for arrays. These operators do not support special expressions, they only support actual values.
This is an example of a JSON path that TJSONPathParser supports: "store.books[0].title".