{"ok":true,"result":{"slug":"env-json-converter","name":".env to JSON Converter","summary":"Convert a .env file to JSON, YAML, docker run -e flags or a Kubernetes env list, or a flat JSON object back to .env. Reports duplicate keys (last value wins).","description":"Convert .env files to JSON and back, or to YAML, docker run -e flags and a Kubernetes env list. Handles quotes, comments, export and multi-line values in your browser.","method":"POST","endpoint":"/api/v1/tools/env-json-converter","plan":"free","mcpName":"env_json_converter","input":{"type":"object","additionalProperties":false,"properties":{"input":{"type":"string","description":"A .env file (KEY=value lines, comments, export prefixes and quotes allowed) or a flat JSON object of names and values.","maxLength":200000},"from":{"type":"string","description":"Input format: env (dotenv syntax), json (a flat object), or auto (JSON if it starts with {).","default":"auto","enum":["auto","env","json"],"maxLength":200000},"to":{"type":"string","description":"Output format.","default":"json","enum":["json","env","yaml","docker","kubernetes"],"maxLength":200000}},"required":["input"]},"example":{"input":"# Database\nDATABASE_URL=postgres://localhost/app\nexport PORT=8080\nGREETING=\"Hello\\nWorld\"","to":"json"},"randomOutput":false,"network":false,"docs":"https://pithlab.com/developers/tools/env-json-converter","page":"https://pithlab.com/tools/env-json-converter"}}