System.JSON.TJSONObject.Get

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Get(const Index: Integer): TJSONPair; overload; inline; deprecated 'Use Pairs property';
function Get(const Name: string): TJSONPair; overload; inline; // deprecated

C++

TJSONPair* __fastcall Get _DEPRECATED_ATTRIBUTE1("Use Pairs property") (const int Index)/* overload */;
TJSONPair* __fastcall Get(const System::UnicodeString Name)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
System.JSON.pas
System.JSON.hpp
System.JSON TJSONObject

Description

Returns the JSON pair specified by Index or Name in the current JSON object.

Get with the Index parameter returns the JSON pair having the specified Index in the list of JSON pairs of the current JSON object. If the given Index is out of range, Get returns nil.

Get with the Name parameter returns the first encountered JSON pair matching the specified Name key in the current JSON object. If no matching key is found, Get returns nil.

See Also