TJSONIniFile class
Ini file implementation using JSON storage format
Declaration
TJSONIniFile = class(TCustomIniFile)Inheritance
- TJSONIniFile
- 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
Dirty | protected | |
Stream | public | Read-only access to the internal stream |
CacheUpdates | public | Controls when changes are written to file |
Methods
GetRoot | protected | |
GetSection | protected | |
GetKeyData | protected | |
SetKeyData | protected | |
MaybeUpdateFile | protected | |
Create | public | Creates a new TJSONIniFile instance |
Destroy | public | Destroys the TJSONIniFile instance |
ConvertIni | public | Converts a traditional ini file to JSON format |
ReadString | public | Reads a string value from the JSON ini file |
ReadInteger | public | Reads an integer value from the JSON ini file |
ReadInt64 | public | Reads a 64-bit integer value from the JSON ini file |
ReadBool | public | Reads a boolean value from the JSON ini file |
ReadDate | public | Reads a date value from the JSON ini file |
ReadDateTime | public | Reads a date-time value from the JSON ini file |
ReadFloat | public | Reads a floating-point value from the JSON ini file |
ReadTime | public | Reads a time value from the JSON ini file |
WriteString | public | Writes a string value to the JSON ini file |
WriteDate | public | Writes a date value to the JSON ini file |
WriteDateTime | public | Writes a date-time value to the JSON ini file |
WriteFloat | public | Writes a floating-point value to the JSON ini file |
WriteTime | public | Writes a time value to the JSON ini file |
WriteInteger | public | Writes an integer value to the JSON ini file |
WriteInt64 | public | Writes a 64-bit integer value to the JSON ini file |
WriteBool | public | Writes a boolean value to the JSON ini file |
ReadSection | public | Reads all key names from a section |
ReadSections | public | Reads all section names from the JSON ini file |
ReadSectionValues | public | Reads all key-value pairs from a section |
EraseSection | public | Removes an entire section from the JSON ini file |
DeleteKey | public | Removes a key from a section |
UpdateFile | public | Writes the JSON data to file |
Inherited
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
