TJSONIniFile.ConvertIni procedure
Converts a traditional ini file to JSON format
Declaration
class procedure ConvertIni(const AIniFile: string;
const AJSONFile: string;
StringsOnly: Boolean=True)Arguments
AIniFile | Path to the source ini file to convert |
AJSONFile | Path to the destination JSON ini file |
StringsOnly | If True, store all values as strings; if False, detect data types |
Description
ConvertIni is a class method that converts an existing traditional ini file to JSON format.
The method reads all sections and keys from the source ini file and writes them to a new JSON ini file.
If
StringsOnly is
True, all values are stored as strings.
If
StringsOnly is
False, the method attempts to detect the data type and store integers, floats, booleans, and dates in their appropriate JSON types.See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
