{"uid":"cap_C40S5uXp11WJJB4wyZTlJ","slug":"pennyrail-json-flatten-b495493c","name":"PennyRail JSON Flatten","description":"Machine-readable settlement service","url":"https://pennyrail.vercel.app/api/f/json.flatten","method":"POST","headers":{},"bodySchema":{"type":"object","required":["input"],"properties":{"input":{"type":"object","description":"JSON object"}}},"responseSchema":{"type":"object","required":["operation","result"],"properties":{"result":{},"operation":{"type":"string"}},"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_aR2tkjJZXow7XAaHd9roq","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 representation","exampleAgentPrompt":"Flatten this nested JSON object for me so all the keys are at the top level: {\"user\":{\"name\":\"Alice\",\"address\":{\"city\":\"New York\",\"zip\":\"10001\"}}}","exampleUseCases":[{"title":"Normalize API response for spreadsheet","prompt":"Take this deeply nested API response JSON and flatten it into a single level so I can load it into a spreadsheet: {\"order\":{\"id\":123,\"customer\":{\"name\":\"Bob\",\"email\":\"bob@example.com\"},\"total\":49.99}}"},{"title":"Prepare config object for environment variables","prompt":"Flatten this JSON config object so all nested keys are collapsed to the top level — I need to map them to environment variables: {\"db\":{\"host\":\"localhost\",\"port\":5432},\"app\":{\"debug\":true,\"name\":\"myapp\"}}"},{"title":"Simplify webhook payload before storing","prompt":"I'm getting webhook payloads with deeply nested structures and want to flatten them before storing. Can you flatten this one for me: {\"event\":\"payment\",\"data\":{\"amount\":100,\"currency\":\"USD\",\"payer\":{\"id\":\"u_42\",\"country\":\"US\"}}}"}],"resultDescription":"Returns an object containing the operation name (e.g. 'flatten') and the result, which is the input JSON object flattened to a single level with nested keys joined by a delimiter (e.g. dot notation). Additional metadata may be present as extra properties.","failureModes":["Missing required 'input' field returns an error response","Input value is not a valid JSON object (e.g. array or primitive) may cause unexpected behavior or error","Extremely large or deeply nested objects may time out or exceed payload limits","Service unavailability on the Vercel deployment returns 5xx errors","Payment failure via x402 protocol prevents the call from completing"],"whenToPreferThis":"Choose this endpoint when you need a quick, pay-per-call microservice to flatten a nested JSON object without setting up local transformation logic. It is ideal for lightweight agent pipelines that occasionally encounter deeply nested JSON and need a normalized flat structure. Prefer alternatives (local libraries, free utilities) for high-volume batch flattening where per-call cost would add up.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:47:16.704Z","isFirstParty":false}