{"uid":"cap_jmPkCWbGehqJBqzMod7ZD","slug":"pennyrail-json-flatten-dot-path-beacfef6","name":"PennyRail JSON Flatten (Dot-Path)","description":"Machine-readable settlement service","url":"https://pennyrail.vercel.app/api/p/nano/json.flatten--dot-path-json","method":"POST","headers":{},"bodySchema":{"type":"object","required":["input"],"properties":{"input":{"type":"object"}}},"responseSchema":{"type":"object","additionalProperties":true},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_x1LhAcByhe9mWrqXe1Mpj","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Flattens a nested JSON object into a dot-path keyed flat object via a paid REST endpoint","exampleAgentPrompt":"Can you flatten this nested JSON object into dot-path keys for me? The object is {\"user\":{\"profile\":{\"name\":\"Alice\",\"age\":30},\"roles\":[\"admin\",\"editor\"]}} — I need it as a flat key-value map like user.profile.name = Alice.","exampleUseCases":[{"title":"Flatten API response for logging","prompt":"I'm getting a deeply nested JSON response from our payments API and I need to log each field as a flat key-value pair with dot notation — can you flatten this object for me? {\"payment\":{\"id\":\"abc123\",\"amount\":{\"value\":99.99,\"currency\":\"USD\"},\"status\":\"settled\"}}"},{"title":"Normalize config object for environment variables","prompt":"I have a nested app config object and need to convert it to dot-path keys so I can map each one to an environment variable. Here's the config: {\"db\":{\"host\":\"localhost\",\"port\":5432},\"cache\":{\"ttl\":300,\"enabled\":true}}"},{"title":"Prepare nested JSON for spreadsheet columns","prompt":"I've got a nested JSON document from our CRM and I want to flatten it into a single-level key-value structure with dot-path keys so I can turn each key into a spreadsheet column. The object is {\"contact\":{\"name\":\"Bob\",\"address\":{\"city\":\"Austin\",\"zip\":\"78701\"},\"score\":88}}."}],"resultDescription":"A flat JSON object where each originally nested field is represented as a dot-separated key (e.g. 'a.b.c') mapping to its scalar or leaf value. The response schema allows any additional properties, so all flattened key-value pairs are returned at the top level of the response object.","failureModes":["Missing or malformed 'input' field returns a 400-level error","Payment not attached or insufficient USDC balance causes a 402 Payment Required response","Extremely large or deeply recursive JSON may time out or exceed size limits","Non-object input types (arrays at root, primitives) may produce unexpected output or errors","Network/Vercel cold-start may add latency on first call"],"whenToPreferThis":"Choose this endpoint when you need a simple, pay-per-use JSON flattening operation and want a hosted microservice rather than running your own transformation logic. It is well-suited for agent workflows that occasionally need to normalize nested API responses, config blobs, or event payloads into flat dot-path structures without setting up a dedicated data pipeline. Prefer alternatives (e.g. a local utility or a general ETL service) for high-volume batch flattening where per-call micropayments would be costly.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T07:11:38.442Z","isFirstParty":false}