INI to JSON strings
Convert INI sections and key-value entries into a JSON object with string values.
The example value has been entered. Check it immediately or change the value.
Input is processed in the browser. Refreshing returns a sample value.
Instructions and example
No. Every value is a string. Quotes are not removed, and empty values remain empty strings.
Converting host=localhost and port=3000 under [server] creates a server object containing strings "localhost" and "3000".
Duplicate sections, keys and interpolation are rejected. Outer spaces are trimmed without numeric or boolean inference; quotes remain literal.
Frequently asked questions
Are true and 3000 converted to boolean and number values?
No. Every value is a string. Quotes are not removed, and empty values remain empty strings.
Are duplicate sections or interpolation supported?
Duplicate sections, keys and interpolation are rejected. Outer spaces are trimmed without numeric or boolean inference; quotes remain literal.
Calculation criteria and reference materials
- Python — ConfigParser
Duplicate sections, keys and interpolation are rejected. Outer spaces are trimmed without numeric or boolean inference; quotes remain literal.
Verification of calculation criteria: · Calculation·verification principles · Report errors