Unit 'JsonIni' Package
[Overview][Classes][Index] [#fcl]

TJSONIniFile

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Ini file implementation using JSON storage format

Declaration

Source position: jsonini.pp line 37

type TJSONIniFile = class(TCustomIniFile)

public

  constructor Create();

  

Creates a new TJSONIniFile instance

  destructor Destroy; override;

  

Destroys the TJSONIniFile instance

  class procedure ConvertIni();

  

Converts a traditional ini file to JSON format

  function ReadString(); override;

  

Reads a string value from the JSON ini file

  function ReadInteger(); override;

  

Reads an integer value from the JSON ini file

  function ReadInt64(); override;

  

Reads a 64-bit integer value from the JSON ini file

  function ReadBool(); override;

  

Reads a boolean value from the JSON ini file

  function ReadDate(); override;

  

Reads a date value from the JSON ini file

  function ReadDateTime(); override;

  

Reads a date-time value from the JSON ini file

  function ReadFloat(); override;

  

Reads a floating-point value from the JSON ini file

  function ReadTime(); override;

  

Reads a time value from the JSON ini file

  procedure WriteString(); override;

  

Writes a string value to the JSON ini file

  procedure WriteDate(); override;

  

Writes a date value to the JSON ini file

  procedure WriteDateTime(); override;

  

Writes a date-time value to the JSON ini file

  procedure WriteFloat(); override;

  

Writes a floating-point value to the JSON ini file

  procedure WriteTime(); override;

  

Writes a time value to the JSON ini file

  procedure WriteInteger(); override;

  

Writes an integer value to the JSON ini file

  procedure WriteInt64(); override;

  

Writes a 64-bit integer value to the JSON ini file

  procedure WriteBool(); override;

  

Writes a boolean value to the JSON ini file

  procedure ReadSection(); override;

  

Reads all key names from a section

  procedure ReadSections(); override;

  

Reads all section names from the JSON ini file

  procedure ReadSectionValues(); override; overload;

  

Reads all key-value pairs from a section

  procedure EraseSection(); override;

  

Removes an entire section from the JSON ini file

  procedure DeleteKey(); override;

  

Removes a key from a section

  procedure UpdateFile();

  

Writes the JSON data to file

  property Stream: TStream; [r]

  

Read-only access to the internal stream

  property CacheUpdates: Boolean; [rw]

  

Controls when changes are written to file

end;

Inheritance

TJSONIniFile

  

Ini file implementation using JSON storage format

|

TCustomIniFile

  

Abstract ini file object.

|

TObject

Description

TJSONIniFile is a descendant of TCustomIniFile that stores configuration data in JSON format instead of traditional ini file format. The JSON structure uses objects for sections and key-value pairs within those objects for the actual configuration entries. This allows for more flexible data storage while maintaining full compatibility with the standard ini file interface.

See also

TCustomIniFile

  

Abstract ini file object.

TMemIniFile

  

Inifile cached in memory.


Documentation generated on: Jan 27 2026