Sign in Join
FPDoc Onlineexperiment

TJSONIniFile class

In unit JsonIni

Ini file implementation using JSON storage format

Declaration

pascal
TJSONIniFile = class(TCustomIniFile)

Inheritance

  1. TJSONIniFile
  2. TCustomIniFile

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

Properties

Dirtyprotected
StreampublicRead-only access to the internal stream
CacheUpdatespublicControls when changes are written to file

Methods

GetRootprotected
GetSectionprotected
GetKeyDataprotected
SetKeyDataprotected
MaybeUpdateFileprotected
CreatepublicCreates a new TJSONIniFile instance
DestroypublicDestroys the TJSONIniFile instance
ConvertInipublicConverts a traditional ini file to JSON format
ReadStringpublicReads a string value from the JSON ini file
ReadIntegerpublicReads an integer value from the JSON ini file
ReadInt64publicReads a 64-bit integer value from the JSON ini file
ReadBoolpublicReads a boolean value from the JSON ini file
ReadDatepublicReads a date value from the JSON ini file
ReadDateTimepublicReads a date-time value from the JSON ini file
ReadFloatpublicReads a floating-point value from the JSON ini file
ReadTimepublicReads a time value from the JSON ini file
WriteStringpublicWrites a string value to the JSON ini file
WriteDatepublicWrites a date value to the JSON ini file
WriteDateTimepublicWrites a date-time value to the JSON ini file
WriteFloatpublicWrites a floating-point value to the JSON ini file
WriteTimepublicWrites a time value to the JSON ini file
WriteIntegerpublicWrites an integer value to the JSON ini file
WriteInt64publicWrites a 64-bit integer value to the JSON ini file
WriteBoolpublicWrites a boolean value to the JSON ini file
ReadSectionpublicReads all key names from a section
ReadSectionspublicReads all section names from the JSON ini file
ReadSectionValuespublicReads all key-value pairs from a section
EraseSectionpublicRemoves an entire section from the JSON ini file
DeleteKeypublicRemoves a key from a section
UpdateFilepublicWrites the JSON data to file

Inherited

From TCustomIniFile (16)

BoolFalseStrings BoolTrueStrings CaseSensitive Encoding EscapeLineFeeds FileName FormatSettingsActive Options OwnsEncoding ReadBinaryStream SectionExists SetBoolStringValues SetEncoding StripQuotes ValueExists WriteBinaryStream

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.