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