System.JSON.TJSONObject.ParseJSONValue
Delphi
class function ParseJSONValue(const Data: PByte; const Offset: Integer; const ALength: Integer; Options: TJSONParseOptions): TJSONValue; overload; static;
class function ParseJSONValue(const Data: TArray<Byte>; const Offset: Integer; IsUTF8: Boolean = True): TJSONValue; overload; inline; static;
class function ParseJSONValue(const Data: TArray<Byte>; const Offset: Integer; Options: TJSONParseOptions): TJSONValue; overload; inline; static;
class function ParseJSONValue(const Data: TArray<Byte>; const Offset: Integer; const ALength: Integer; IsUTF8: Boolean = True): TJSONValue; overload; inline; static;
class function ParseJSONValue(const Data: TArray<Byte>; const Offset: Integer; const ALength: Integer; Options: TJSONParseOptions): TJSONValue; overload; inline; static;
class function ParseJSONValue(const Data: string; UseBool: Boolean = False; RaiseExc: Boolean = False): TJSONValue; overload; static;
class function ParseJSONValue(const Data: UTF8String; UseBool: Boolean = False; RaiseExc: Boolean = False): TJSONValue; overload; static;
C++
static TJSONValue* __fastcall ParseJSONValue(const System::PByte Data, const int Offset, const int ALength, TJSONParseOptions Options)/* overload */;
static TJSONValue* __fastcall ParseJSONValue(const System::DynamicArray<System::Byte> Data, const int Offset, bool IsUTF8 = true)/* overload */;
static TJSONValue* __fastcall ParseJSONValue(const System::DynamicArray<System::Byte> Data, const int Offset, TJSONParseOptions Options)/* overload */;
static TJSONValue* __fastcall ParseJSONValue(const System::DynamicArray<System::Byte> Data, const int Offset, const int ALength, bool IsUTF8 = true)/* overload */;
static TJSONValue* __fastcall ParseJSONValue(const System::DynamicArray<System::Byte> Data, const int Offset, const int ALength, TJSONParseOptions Options)/* overload */;
static TJSONValue* __fastcall ParseJSONValue(const System::UnicodeString Data, bool UseBool = false, bool RaiseExc = false)/* overload */;
static TJSONValue* __fastcall ParseJSONValue(const System::UTF8String Data, bool UseBool = false, bool RaiseExc = false)/* overload */;
Eigenschaften
Typ | Sichtbarkeit | Quelle | Unit | Übergeordnet |
---|---|---|---|---|
function | public | System.JSON.pas System.JSON.hpp |
System.JSON | TJSONObject |
Beschreibung
Analysiert ein Nicht-Null-Byte-Array und gibt den JSON-Wert zurück, der den analysierten Daten entspricht, oder null, wenn die Analyse fehlschlägt.
ParseJSONValue akzeptiert die folgenden Parameter:
Data
ist das Byte-Array, der String oder der UTF-8-String, das bzw. der analysiert werden soll.Offset
ist eine Byte-Anzahl, die am Beginn vonData
übersprungen werden soll.ALength
ist die Byte-Anzahl, die ausData
gelesen werden soll.IsUTF8
gibt an, ob das angegebene Byte-Array UTF-8-Text ist, der ein Byte Order Mark (BOM) (EN) enthält (True
) oder nicht (False
).UseBool
legt fest, ob Instanzen, die einen booleschen Wert repräsentieren, die Klasse TJSONBool (True
) oder die Klassen TJSONTrue und TJSONFalse (False
) verwenden.Options
ist eine Menge von Analyseoptionen für ParseJSONValue.