Unit 'JsonIni' Package
[Overview][Classes][Index] [#fcl]

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

);

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

Create

  

Creates a new TJSONIniFile instance

TMemIniFile

  

Inifile cached in memory.


Documentation generated on: Jan 27 2026