{"uid":"cap_03KEYBHf239G5dgThQTXA","slug":"json-flatten-aa31c83f","name":"JSON Flatten","description":"Agent-ready microservices with x402 + Stripe rails, volume primitives, tutorials, and applet UI.","url":"https://grokzilla.shop/api/skills/json-flatten","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"body":{"type":"object"},"path":{"type":"string"},"type":{"type":"string","const":"http"},"method":{"type":"string"},"bodyType":{"type":"string"}}},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"ok":true,"path":"/api/skills/json-flatten"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.006","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.006/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_1jG48GvXZSsBkkj6a7oOv","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.006","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 via a paid microservice endpoint","exampleAgentPrompt":"Can you flatten this nested JSON object for me — I need it converted to a single-level key-value structure so I can load it into a CSV: {\"user\":{\"name\":\"Alice\",\"address\":{\"city\":\"Denver\",\"zip\":\"80201\"}}}","exampleUseCases":[{"title":"Flatten API response for database ingestion","prompt":"I got a deeply nested JSON response from an API and need it flattened to a single-level object so I can insert each field as a column in my database table. Can you flatten it for me?"},{"title":"Normalize config file for spreadsheet import","prompt":"I have a nested JSON config file and I want to turn it into a flat key-value structure so I can paste it into a spreadsheet. Can you flatten the JSON for me?"},{"title":"Simplify nested JSON for downstream agent processing","prompt":"My pipeline is choking on deeply nested JSON — can you flatten it into a simple dot-notation key-value map so the next step can process it without any nesting?"}],"resultDescription":"Returns a JSON response with an 'ok' boolean indicating success and the endpoint path. The actual flattened JSON object is the primary payload, collapsing all nested keys into a single-level structure (typically using dot-notation or underscore-separated key paths).","failureModes":["Invalid or malformed JSON input body returns an error response","Missing required 'input' field or wrong type/method values cause validation failure","Payment failure via x402 protocol results in 402 Payment Required before processing","Extremely large or deeply recursive JSON objects may time out or exceed size limits","Non-object JSON root types (arrays, primitives) may not be supported"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call JSON flattening microservice without spinning up your own transformation infrastructure. It is ideal for AI agents that occasionally need to normalize nested JSON on the fly, especially within x402-compatible payment workflows where micropayments per operation are acceptable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:33:55.060Z","isFirstParty":false}