Converts a traditional ini file to JSON format
Source position: jsonini.pp line 56
public class procedure TJSONIniFile.ConvertIni( |
const AIniFile: string; |
const AJSONFile: string; |
StringsOnly: Boolean = True |
); |
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 |
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.
|
Creates a new TJSONIniFile instance |
|
|
Inifile cached in memory. |