System.JSON.TJSONObject.ParseJSONValue : Différence entre versions

De RAD Studio API Documentation
Aller à : navigation, rechercher
m (L10nBot a déplacé la page System.Json.TJSONObject.ParseJSONValue vers System.JSON.TJSONObject.ParseJSONValue sans laisser de redirection : Json>JSON)
 
m (1 version : Import of Sept 4 TP. LOC-20165)
 
(Une révision intermédiaire par le même utilisateur non affichée)
Ligne 1 : Ligne 1 :
 
{{#lst:API:System.JSON.TJSONObject.ParseJSONValue|api}}
 
{{#lst:API:System.JSON.TJSONObject.ParseJSONValue|api}}
<!--Start API Documentation-->
+
 
 
==Description==
 
==Description==
 +
 
{{#ifeq: {{PAGENAME}} | System.JSON.TJSONObject.ParseJSONValue | |{{InheritsFrom|System.JSON.TJSONObject.ParseJSONValue}}}}
 
{{#ifeq: {{PAGENAME}} | System.JSON.TJSONObject.ParseJSONValue | |{{InheritsFrom|System.JSON.TJSONObject.ParseJSONValue}}}}
  
<section begin=short />Analyse un tableau d'octets et renvoie la valeur JSON correspondante aux données analysées.<section end=short />
+
<section begin="short" />Analyse un tableau d'octets non null et renvoie la [[System.JSON.TJSONValue|valeur JSON]] correspondant aux données analysées, ou null si l'analyse échoue.<section end="short" />
  
Appelez [[System.JSON.TJSONObject.ParseJSONValue|ParseJSONValue]] pour analyser le tableau d'octets non null donné par le paramètre <span class="codeInline">Data</span>, en commençant à l'offset donné par le paramètre <span class="codeInline">Offset</span>.
+
[[System.JSON.TJSONObject.ParseJSONValue|ParseJSONValue]] accepte les paramètres suivants :
  
[[System.JSON.TJSONObject.ParseJSONValue|ParseJSONValue]] renvoie la valeur JSON correspondante aux données analysées, ou null si l'analyse échoue.  
+
* {{Arg|Data}} est le [[System.TArray|tableau]] [[System.Byte|d'octets]], [[System.UnicodeString|la chaîne]] ou [[System.UTF8String|la chaîne UTF-8]] à analyser.
 +
* {{Arg|Offset}} est un nombre d'octets à ignorer au début de {{Arg|Data}}.
 +
* {{Arg|ALength}} est le nombre d'octets à lire à partir de {{Arg|AData}}.
 +
* {{Arg|IsUTF8}} indique si le tableau d'octets spécifié est un texte UTF-8 qui contient un [[Wikipedia:Byte order mark#UTF-8|BOM (byte order mark)]] ({{True}}) ou non ({{False}}).
 +
* {{Arg|UseBool}} détermine si des instances qui représentent cette valeur booléenne utilisent la classe [[System.JSON.TJSONBool|TJSONBool]] ({{True}}) ou les classes [[System.JSON.TJSONTrue|TJSONTrue]] et [[System.JSON.TJSONFalse|TJSONFalse]] ({{False}}).
 +
* {{Arg|Options}} est un [[System.JSON.TJSONObject.TJSONParseOptions|ensemble d'options d'analyse]] pour [[System.JSON.TJSONObject.ParseJSONValue|ParseJSONValue]].
  
 
===Voir aussi===
 
===Voir aussi===
  
* [[System.JSON.TJSONObject.Parse|Parse]]
+
* [[System.JSON.TJSONObject.Parse|System.JSON.TJSONObject.Parse]]
 
 
  
 
[[Category:Documentation API]]
 
[[Category:Documentation API]]
<!--End API Documentation-->
 

Version actuelle datée du 11 septembre 2015 à 12:52

Delphi

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; static;
class function ParseJSONValue(const Data: string; UseBool: Boolean = False): TJSONValue; overload; static;
class function ParseJSONValue(const Data: UTF8String; UseBool: Boolean = False): TJSONValue; overload; static;

C++

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)/* overload */;
static TJSONValue* __fastcall ParseJSONValue(const System::UTF8String Data, bool UseBool = false)/* overload */;

Propriétés

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


Description

Analyse un tableau d'octets non null et renvoie la valeur JSON correspondant aux données analysées, ou null si l'analyse échoue.

ParseJSONValue accepte les paramètres suivants :

Voir aussi