Read a section as an object containing string values
Example input
[app]
name=DemoExpected result
{
"app": {
"name": "Demo"
}
}Convert INI to JSON. The section becomes an object and the value remains a string. A numeric-looking INI value is not automatically a JSON number. Comments and original spacing do not become part of the resulting object, so preserve the source when those details are needed for maintenance.