{"uid":"cap_5nOm3eQOeqC1ZrwDcwrKU","slug":"x402-micro-pay-json-flatten-skill-70c0d340","name":"x402 Micro Pay — JSON Flatten Skill","description":"Agent-ready microservices with x402 + Stripe rails, volume primitives, tutorials, and applet UI.","url":"https://x402-micro-pay.com/api/skills/json-flatten?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"data":{},"options":{"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_L8Nv1iQXpX9zNQejsbo7O","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 HTTP microservice endpoint using x402 micropayment rails.","exampleAgentPrompt":"Can you flatten this nested JSON object for me? Here it is: {\"user\":{\"name\":\"Alice\",\"address\":{\"city\":\"NYC\",\"zip\":\"10001\"}}} — I need it as a single-level flat structure.","exampleUseCases":[{"title":"Flatten API response for database insert","prompt":"I got this deeply nested JSON back from an API and I need to flatten it into simple key-value pairs before writing it to my database. Can you flatten it for me? Here's the object: {\"order\":{\"id\":\"123\",\"customer\":{\"name\":\"Bob\",\"email\":\"bob@example.com\"},\"total\":49.99}}"},{"title":"Normalize config file for environment variables","prompt":"I have a nested JSON config file and I need to flatten it so I can use the keys as environment variable names. Can you flatten this for me: {\"app\":{\"server\":{\"host\":\"localhost\",\"port\":8080},\"db\":{\"url\":\"postgres://localhost/mydb\"}}}?"},{"title":"Prepare nested payload for CSV export","prompt":"I need to convert a nested JSON payload into a flat structure so I can export it as a CSV row. Please flatten this: {\"product\":{\"sku\":\"ABC-001\",\"details\":{\"color\":\"blue\",\"size\":\"M\"},\"price\":29.99}}."}],"resultDescription":"Returns a JSON response with an `ok` boolean indicating success and the endpoint path, along with the flattened version of the input JSON object where all nested keys are collapsed into a single level (typically using dot notation or underscore-separated key paths).","failureModes":["Missing required `input` field returns a 400-level error","Invalid or non-object JSON body causes parsing failure","Incorrect `type` or `method` fields in the input schema may cause rejection","Payment failure via x402 protocol (insufficient USDC balance or payment not accepted) blocks the request","Extremely large or deeply circular JSON objects may time out or error"],"whenToPreferThis":"Choose this endpoint when you need a quick, pay-per-use JSON flattening operation without provisioning your own infrastructure. It is ideal for AI agents that need to occasionally normalize nested API responses or config objects without a long-term service commitment. At $0.006 USDC per call it is cost-effective for low-to-moderate volume. Prefer a self-hosted solution for very high-volume batch operations.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-14T12:42:17.503Z","isFirstParty":false,"canonicalSlug":"x402-micro-pay-json-flatten-skill-70c0d340"}