# Toml2json

> Use this skill when the user wants to convert TOML files to JSON format, or pipe TOML data through stdin to get JSON output.

- Skill: `javimosch/toml2json` (Agent Skill)
- Install (CLI): `npx skillmds@latest add javimosch/toml2json`
- Raw SKILL.md: https://api.skillmd.com/api/skills/javimosch/toml2json/raw
- Safety review: PASS (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: javimosch (https://skillmd.com/u/javimosch)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/javimosch/toml2json

---


# toml2json Plugin

Very small CLI for converting TOML to JSON.

## Commands

### Convert
- `toml2json convert file` — Convert a TOML file to JSON
- `toml2json convert pretty` — Convert TOML to pretty-printed JSON

## Usage Examples
- "Convert a TOML file to JSON"
- "Pretty-print a TOML configuration as JSON"
- "Pipe TOML data and convert it"

## Installation

```bash
cargo install toml2json
```

## Examples

```bash
# Convert a file
toml2json config.toml

# Pretty-print
toml2json --pretty config.toml

# Pipe from stdin
cat config.toml | toml2json

# Use with jq
toml2json config.toml | jq '.key'
```

## Key Features
- Convert TOML to JSON
- Read from files or stdin
- Pretty-print output option
- Pipe-friendly for shell workflows

