{"uid":"cap_Zp8GlR75wK-_NECw5-X4H","slug":"pennyrail-json-flatten-03e8cc28","name":"PennyRail JSON Flatten","description":"Machine-readable settlement service","url":"https://pennyrail.vercel.app/api/p/nano/json.flatten--flatten-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_cu-G4S8tvGxwUFXng4gY0","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 single-level key-value structure using dot or bracket notation","exampleAgentPrompt":"Can you flatten this nested JSON object for me — I need all the deeply nested keys collapsed into dot-notation at the top level so I can load it into a spreadsheet?","exampleUseCases":[{"title":"Flatten API response for CSV export","prompt":"I got this deeply nested JSON back from a third-party API and I need to flatten it into a single-level structure so I can drop it into a spreadsheet — can you run it through the flattener?"},{"title":"Normalize config before database insert","prompt":"I have a nested config object with several levels of nesting that I need to flatten into dot-notation key-value pairs before inserting it into my database table."},{"title":"Simplify webhook payload for logging","prompt":"This webhook payload has a bunch of nested objects inside it — can you flatten the whole thing so my logging system can index every field at the top level?"}],"resultDescription":"A flattened JSON object where all nested keys are collapsed into a single level, typically using dot notation (e.g. 'address.city': 'New York') — returned as a JSON object with no nested structures.","failureModes":["Missing or malformed 'input' field returns a validation error","Input containing circular references may cause processing failure","Non-object input types (arrays, primitives at root) may be rejected or produce unexpected output","Very large deeply nested objects may hit size or depth limits","Network timeout on the Vercel serverless function under cold-start conditions"],"whenToPreferThis":"Choose this endpoint when you need a quick, pay-per-call JSON flattening operation without standing up your own transformation pipeline. Useful in agent workflows where you receive nested API responses and need to normalize them for downstream processing like CSV export, database insertion, or flat-field logging. Prefer this over general-purpose code execution when you want a lightweight, dedicated utility with no setup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T07:21:55.730Z","isFirstParty":false}