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 */;
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | System.JSON.pas System.JSON.hpp |
System.JSON | TJSONObject |
Description
Parses a non-null byte array and returns the JSON value corresponding to the parsed data, or null if the parsing fails.
ParseJSONValue accepts the following parameters:
Datais the array of bytes, string or UTF-8 string to parse.Offsetis a number of bytes to skip at the beginning ofData.ALengthis the number of bytes to read fromData.IsUTF8indicates whether the specified array of bytes is UTF-8 text that contains a byte order mark (True) or not (False).UseBooldetermines whether instances that represent boolean value use the TJSONBool class (True) or the TJSONTrue and TJSONFalse classes (False).Optionsis a set of parsing options for ParseJSONValue.