Data.DBXJSON.TJSONObject.Parse
From RAD Studio API Documentation
Revision as of 16:42, 16 October 2011 by TestAccount (Talk | contribs)
Delphi
function Parse(const Data: TArray<Byte>; const Pos: Integer): Integer; overload; function Parse(const Data: TArray<Byte>; const Pos: Integer; const Count: Integer): Integer; overload;
C++
int __fastcall Parse(const System::DynamicArray<System::Byte> Data, const int Pos)/* overload */; int __fastcall Parse(const System::DynamicArray<System::Byte> Data, const int Pos, const int Count)/* overload */;
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | Data.DBXJSON.pas Data.DBXJSON.hpp |
Data.DBXJSON | TJSONObject |
Description
Parses the given JSON stream and adds the encountered JSON pairs to the TJSONObject instance.
Call Parse to parse the JSON stream given through the Data parameter, starting with the position given by the Pos parameter.
Parse creates JSON pairs for each of the parsed pairs in the JSON stream and stores them inside the TJSONObject instance.
If any parse error is encountered, Parse returns a negative number.