This package declares interface type to be used as abstract interface to process JSON streams in callback style API.
procedure Boolean_Value
(Self : in out JSON_Content_Handler'Class;
Value : Boolean)
procedure Boolean_Value
(Self : in out JSON_Content_Handler;
Value : Boolean;
Success : in out Boolean)
procedure End_Array (Self : in out JSON_Content_Handler'Class)
procedure End_Array
(Self : in out JSON_Content_Handler; Success : in out Boolean)
procedure End_Document (Self : in out JSON_Content_Handler'Class)
procedure End_Document
(Self : in out JSON_Content_Handler; Success : in out Boolean)
Called when processing of JSON document has need finished with any reason (document processed completely, document is invalid, processing is terminated by application). No other subprograms will be called before new call of Start_Document.
procedure End_Object (Self : in out JSON_Content_Handler'Class)
procedure End_Object
(Self : in out JSON_Content_Handler; Success : in out Boolean)
function Error_Message
(Self : JSON_Content_Handler) return VSS.Strings.Virtual_String
Return diagnosis message for error detected by handler. Usually called by the reader to get diagnosis and provide it for higher level component.
procedure Float_Value
(Self : in out JSON_Content_Handler'Class;
Value : Interfaces.IEEE_Float_64)
procedure Float_Value
(Self : in out JSON_Content_Handler'Class;
Value : Interfaces.IEEE_Float_64;
Success : in out Boolean)
procedure Integer_Value
(Self : in out JSON_Content_Handler'Class;
Value : Interfaces.Integer_64)
procedure Integer_Value
(Self : in out JSON_Content_Handler'Class;
Value : Interfaces.Integer_64;
Success : in out Boolean)
type JSON_Content_Handler is limited interface;
type JSON_Content_Handler_Access is access all JSON_Content_Handler'Class;
procedure Key_Name
(Self : in out JSON_Content_Handler'Class;
Name : VSS.Strings.Virtual_String'Class)
procedure Key_Name
(Self : in out JSON_Content_Handler;
Name : VSS.Strings.Virtual_String'Class;
Success : in out Boolean)
procedure Null_Value (Self : in out JSON_Content_Handler'Class)
procedure Null_Value
(Self : in out JSON_Content_Handler; Success : in out Boolean)
procedure Number_Value
(Self : in out JSON_Content_Handler'Class;
Value : VSS.JSON.JSON_Number)
procedure Number_Value
(Self : in out JSON_Content_Handler;
Value : VSS.JSON.JSON_Number;
Success : in out Boolean)
procedure Start_Array (Self : in out JSON_Content_Handler'Class)
procedure Start_Array
(Self : in out JSON_Content_Handler; Success : in out Boolean)
procedure Start_Document (Self : in out JSON_Content_Handler'Class)
procedure Start_Document
(Self : in out JSON_Content_Handler; Success : in out Boolean)
Called when processing of JSON document has been started
procedure Start_Object (Self : in out JSON_Content_Handler'Class)
procedure Start_Object
(Self : in out JSON_Content_Handler; Success : in out Boolean)
procedure String_Value
(Self : in out JSON_Content_Handler'Class;
Value : VSS.Strings.Virtual_String'Class)
procedure String_Value
(Self : in out JSON_Content_Handler;
Value : VSS.Strings.Virtual_String'Class;
Success : in out Boolean)