# INI to JSON

`ini-to-json` · version 1.0.0 · YAML, TOML, INI, XML & TSV · free, no key needed

Convert an INI string to a JSON object.

**Use when you need to: ini to json · parse ini · convert ini to json.**

## Supported

- ini to json
- parse ini
- convert ini to json

## Not supported

- json to ini
- read files
- fetch urls

## Behavior

- Parses INI syntax and returns the equivalent JSON representation.
- Coerces "true", "false", and "null" literals into JSON types; numbers remain strings.
- Duplicate keys silently take the last defined value.
- Prototype injection keys (e.g. __proto__) are safely dropped.

## Input

- `ini` (string, required): max length 262144

## Output

- object

## Limits

- max input bytes: 262144

## Example

Request input:

```json
{
  "ini": "name=Ada\ncity=London"
}
```

Response:

```json
{
  "result": {
    "name": "Ada",
    "city": "London"
  }
}
```

## How to call it

### MCP

Connect `https://computefirst.net/mcp` ([setup](/docs#connect)), then call `execute` with:

```json
{
  "id": "ini-to-json",
  "version": "1.0.0",
  "input": {
    "ini": "name=Ada\ncity=London"
  }
}
```

### HTTP (no key)

```sh
curl -X POST https://computefirst.net/v1/tools/ini-to-json/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"ini":"name=Ada\ncity=London"}'
```

The machine-readable contract is at [/v1/tools/ini-to-json/versions/1.0.0](/v1/tools/ini-to-json/versions/1.0.0).

### CLI

```sh
node cli.mjs run ini-to-json 1.0.0 --input input.json --base-url https://computefirst.net
```

Get the client at [/clients/cli/](/clients/cli/).

## Related tools

- [JSON to INI](/tools/json-to-ini): Convert JSON data to an INI string.
- [TOML to JSON](/tools/toml-to-json): Convert a TOML string to a JSON object.
- [TSV to JSON](/tools/tsv-to-json): Convert a complete TSV document into an array of string-valued objects.
- [XML to JSON](/tools/xml-to-json): Convert an XML string to a JSON object.
- [YAML to JSON](/tools/yaml-to-json): Convert a YAML string to a JSON object or array.
- [JSON to TOML](/tools/json-to-toml): Convert JSON data to a TOML string.
