Unit msejson

Description

 

Overview

Classes, Interfaces, Objects and Records

Name Description
Class ejsonerror  
Record jsondataty  
Record jsonvaluety  
Record jsonitemty  
Class tjsoncontainer  

Functions and Procedures

procedure jsonvalueinit(var avalue: jsonvaluety);
procedure jsonvaluefree(var avalue: jsonvaluety);
function jsonfindvalue(const avalue: jsonvaluety; const names: array of msestring; const raiseexception: boolean = false): pjsonvaluety;
function jsonasstring(const avalue: jsonvaluety; const names: array of msestring): msestring;
function jsonasint32(const avalue: jsonvaluety; const names: array of msestring): int32;
function jsonasint64(const avalue: jsonvaluety; const names: array of msestring): int64;
function jsonasflo64(const avalue: jsonvaluety; const names: array of msestring): flo64;
function jsonasboolean(const avalue: jsonvaluety; const names: array of msestring): boolean;
procedure jsoniteratearray(const avalue: jsonvaluety; const names: array of msestring; var adata; const startproc: arraystartprocty; const itemproc: arrayitemprocty);
procedure jsoniteratearray(const avalue: jsonvaluety; const names: array of msestring; var adata; const startproc: arraystartmethodty; const itemproc: arrayitemmethodty);
function jsonadditems(var jvalue: jsonvaluety; const anames: array of msestring; const avalues: array of const): pjsonvaluety;
function jsonaddvalues(var jvalue: jsonvaluety; const avalues: array of const): pjsonvaluety;
function jsondecode(const adata: string; out avalue:jsonvaluety): boolean;
function jsonencode(const avalue: jsonvaluety; const adest: tstream; const aoptions: jsonencodeoptionsty = []): syserrorty;

Types

jsonencodeoptionty = (...);
jsonencodeoptionsty = set of jsonencodeoptionty;
jsondatatypty = (...);
jsonkindty = (...);
pjsonvaluety = ˆjsonvaluety;
jsonvaluearty = array of jsonvaluety;
pjsonitemty = ˆjsonitemty;
jsonitemarty = array of jsonitemty;
arraystartmethodty = procedure(var adata; const acount: int32) of object;
arrayitemmethodty = procedure(var adata; const aindex: int32; const aitem: jsonvaluety) of object;
arraystartprocty = procedure(var adata; const acount: int32);
arrayitemprocty = procedure(var adata; const aindex: int32; const aitem: jsonvaluety);

Description

Functions and Procedures

procedure jsonvalueinit(var avalue: jsonvaluety);
 
procedure jsonvaluefree(var avalue: jsonvaluety);
 
function jsonfindvalue(const avalue: jsonvaluety; const names: array of msestring; const raiseexception: boolean = false): pjsonvaluety;
 
function jsonasstring(const avalue: jsonvaluety; const names: array of msestring): msestring;
 
function jsonasint32(const avalue: jsonvaluety; const names: array of msestring): int32;
 
function jsonasint64(const avalue: jsonvaluety; const names: array of msestring): int64;
 
function jsonasflo64(const avalue: jsonvaluety; const names: array of msestring): flo64;
 
function jsonasboolean(const avalue: jsonvaluety; const names: array of msestring): boolean;
 
procedure jsoniteratearray(const avalue: jsonvaluety; const names: array of msestring; var adata; const startproc: arraystartprocty; const itemproc: arrayitemprocty);
 
procedure jsoniteratearray(const avalue: jsonvaluety; const names: array of msestring; var adata; const startproc: arraystartmethodty; const itemproc: arrayitemmethodty);
 
function jsonadditems(var jvalue: jsonvaluety; const anames: array of msestring; const avalues: array of const): pjsonvaluety;
 
function jsonaddvalues(var jvalue: jsonvaluety; const avalues: array of const): pjsonvaluety;
 
function jsondecode(const adata: string; out avalue:jsonvaluety): boolean;
 
function jsonencode(const avalue: jsonvaluety; const adest: tstream; const aoptions: jsonencodeoptionsty = []): syserrorty;
 

Types

jsonencodeoptionty = (...);
 
Values
  • jseo_tabindent
jsonencodeoptionsty = set of jsonencodeoptionty;
 
jsondatatypty = (...);
 
Values
  • jot_null
  • jot_string
  • jot_boolean
  • jot_int32
  • jot_int64
  • jot_flo64
jsonkindty = (...);
 
Values
  • jok_empty
  • jok_error
  • jok_value
  • jok_object
  • jok_array
pjsonvaluety = ˆjsonvaluety;
 
jsonvaluearty = array of jsonvaluety;
 
pjsonitemty = ˆjsonitemty;
 
jsonitemarty = array of jsonitemty;
 
arraystartmethodty = procedure(var adata; const acount: int32) of object;
 
arrayitemmethodty = procedure(var adata; const aindex: int32; const aitem: jsonvaluety) of object;
 
arraystartprocty = procedure(var adata; const acount: int32);
 
arrayitemprocty = procedure(var adata; const aindex: int32; const aitem: jsonvaluety);
 

Generated by PasDoc 0.16.0.