TCustomJSONPropStorage.StorageNeeded procedure
Ensures that the TJSONConfig storage mechanism for the class instance is allocated and configured when needed.
Declaration
procedure StorageNeeded(ReadOnly: Boolean); overrideDescription
Creates the TJSONCOnfig instance in JSONConf if it has not already been allocated, or when the value in ReadOnly differs from the value used when the storage mechanism was created. Uses values from Formatted and GetJSONFileName to configure the JSONConf member. Increments the internal usage counter for the storage mechanism.
StorageNeeded is called from methods like: Save, Restore, SaveProperties, RestoreProperties, ReadString, WriteString, ReadInteger, WriteInteger, and EraseSections.
See FreeStorage for the actions performed when the JSON storage mechanism in JSONConf is no longer needed.
See also
An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.
