{"category":"data","endpoint":"https://setget.net/v1/tools/env-to-json","examples":[{"input":{"indent":0,"text":"# app\nPORT=8080\nexport NAME=\"My App\"\nDEBUG=true # on"},"output":{"skipped":[],"text":"{\"PORT\":\"8080\",\"NAME\":\"My App\",\"DEBUG\":\"true\"}","variables":3}}],"input_schema":{"additionalProperties":false,"properties":{"indent":{"default":2,"description":"Spaces per level. 0 gives one compact line.","maximum":8,"minimum":0,"type":"integer"},"text":{"description":"The contents of a .env file. Do not paste real secrets.","examples":["# app\nPORT=8080\nexport NAME=\"My App\"\nDEBUG=true # on"],"type":"string"}},"required":["text"],"type":"object"},"keywords":["env","dotenv","environment variables","json","convert","config"],"related":["json-to-yaml","querystring-parse"],"slug":"env-to-json","summary":"Parse a .env file into a JSON object, handling quotes, comments and \"export\" prefixes.","tier":"inline","title":".env to JSON","url":"https://setget.net/tools/env-to-json"}
