Convert INI to JSON
Turn INI files into JSON. Sections become objects and keys before the first section stay at the top level; a repeated key becomes a list, a repeated section is merged, and unquoted numbers and booleans are typed.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop INI files on the dialor turn it to pick what to do
Settings as JSON data.Sections become objects, and values keep their types where they can.
What you get
One JSON file. Each section in the INI file becomes an object, and the keys inside it become the keys of that object. Keys that come before the first section stay at the top level.
Numbers and booleans that are not in quotes are typed as numbers and booleans, not left as text.
Repeated keys and sections
A key that appears more than once becomes a list of its values. A section that appears more than once is merged into one object.
INI and JSON.What each format is.
The formats
INI
Sections of key and value pairs, the settings format of Windows and many tools.
- Extensions
- .ini .cfg
- MIME type
- text
/x -ini - Kind
- Text and data
JSON
JSON, the data format of every API.
- Extensions
- .json
- MIME type
- application
/json - Kind
- Text and data
In your code.The same INI to JSON conversion through the API, for your app or your agent.
$ cv convert report.ini report.json$ cv convert report.ini report.jsonQuestions.What people ask about INI to JSON.
They stay at the top level of the JSON file, next to the objects made from the sections.
Yes. Files with the extension ini or cfg are both read as INI.
Not when they are unquoted. They become JSON numbers and booleans.
Yes. JSON to INI goes the other way.