Ini Json Converter MCP tool
findutils:ini_json_converter Convert classic INI, .cfg or .conf text to JSON, or a JSON object back to INI. Each [section] becomes a nested object and keys above the first header sit on the root. Comments opened by ; or # are dropped, quoted values keep their spaces and punctuation, and a duplicate key keeps the last value and is reported. Values stay strings unless infer_types is on. JSON to INI takes one level of sections and rejects deeper nesting or arrays rather than guessing a syntax. Not a TOML, .properties or systemd unit parser.
Arguments
application/json-
input
string required
The INI/.cfg/.conf text or the JSON object to convert.
-
mode
string optional
Conversion direction. Default: ini-to-json. One of
ini-to-json · json-to-ini. Default"ini-to-json". -
infer_types
boolean optional
ini-to-json: turn integers, decimals, true and false into JSON types. Default: false (every value is a string). Default
false. -
indent
integer optional
ini-to-json: JSON indentation width (0-8). Default: 2. Default
2. -
delimiter
string optional
json-to-ini: how each line separates key and value. Default: " = ". One of
= · = · :. Default" = ".
Example arguments
Verified{
"input": "[server]\nhost = localhost\nport = 8080"
} More Data tools
- Api Docs Generator Return API documentation generated from a list of endpoints, as Markdown (with table of contents, request/response examples) or as an OpenAP
- Bookmarks Html To Csv Convert a browser bookmarks.html export from Chrome, Firefox, Edge, Safari or any other browser that writes the Netscape bookmark format int
- Csv To Bookmarks Html Convert a CSV of links into a Netscape bookmarks.html file that Chrome, Firefox, Edge and Safari import.
- Csv To Json Parse CSV text into an array of objects keyed by the header row.
- Csv To Ndjson Convert CSV into newline-delimited JSON (NDJSON, JSON Lines, .jsonl): one JSON object per line, keyed by the header row.
- Csv To Sql Convert CSV text into SQL INSERT statements, optionally preceded by a CREATE TABLE.