{"uid":"cap_ATX8kmQW-9LK-iCIuT39z","slug":"toml-to-json-converter-f849f444","name":"TOML to JSON Converter","description":"TOML to JSON. POST a TOML document; the response is pretty-printed JSON. A conforming parser handles the parts hand-rolled readers get wrong — dotted keys, arrays of tables, offset date-times. Dates become ISO-8601 strings and comments are dropped, because JSON has neither; this is a read path, not a round trip.","url":"https://toolshed.lemon-agent.dev/convert/toml-json","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"string","maxLength":262144,"description":"the raw TOML file as the request body, up to 256 KB"},"type":{"type":"string","const":"http"},"method":{"type":"string","const":"POST"},"bodyType":{"type":"string","const":"text"}},"additionalProperties":false},"output":{"type":"object","required":["type","format"],"properties":{"type":{"type":"string","const":"text"},"format":{"type":"string","const":"application/json","description":"the converted JSON file as the response body (application/json)"},"example":{"type":"string","description":"the sample request body above, converted — what a the converted JSON file as the response body (application/json) looks like"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_8DY0kxtTMIo3NNPTTkOn_","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a TOML document into pretty-printed JSON, correctly handling dotted keys, arrays of tables, and offset date-times.","exampleAgentPrompt":"Convert this TOML config file to JSON for me — it has some dotted keys and a few date fields that need to come out as ISO-8601 strings.","exampleUseCases":[{"title":"Parse Cargo.toml for dependency analysis","prompt":"Take this Cargo.toml file and convert it to JSON so I can programmatically inspect the dependencies and metadata — it has dotted keys and arrays of tables."},{"title":"Convert pyproject.toml for tooling pipeline","prompt":"I have a pyproject.toml I need to feed into a JSON-based configuration pipeline — can you convert it to pretty-printed JSON for me?"},{"title":"Inspect TOML config in readable JSON","prompt":"Here's a TOML configuration file with offset date-time fields — convert it to JSON so I can read and diff it more easily."}],"resultDescription":"A pretty-printed JSON representation of the submitted TOML document. Dates become ISO-8601 strings, comments are stripped (JSON has no comment syntax), dotted keys are expanded correctly, and arrays of tables are represented as JSON arrays of objects.","failureModes":["Malformed TOML input returns a parse error response","Input exceeding 256 KB is rejected","Non-TOML content sent as body will fail parsing","Duplicate keys that are invalid TOML will be rejected by the conforming parser"],"whenToPreferThis":"Choose this endpoint when you need a spec-conforming TOML parser rather than a hand-rolled reader — especially when your TOML uses dotted keys, arrays of tables, or offset date-times that simpler parsers get wrong. Ideal for config files like Cargo.toml, pyproject.toml, or any structured TOML document you need to process as JSON.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:36:00.623Z","isFirstParty":false}