{"uid":"cap_zb4vnqFNHbFtiSw_YtYnA","slug":"strale-flatten-json-4db5393a","name":"Strale Flatten JSON","description":"The trust layer for AI agents — 250+ independently tested data capabilities across 27 countries. Execute capabilities via REST, MCP, A2A, or x402 micropayments. Every call returns an audit record with cryptographic chain hashing.","url":"https://api.strale.io/x402/v2/flatten-json","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["data"],"properties":{"data":{"description":"Nested JSON object"},"delimiter":{"type":"string","description":"Default '.'"},"array_handling":{"type":"string","description":"'index' or 'stringify'"}}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0216","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.0216/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0216","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0216","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_2vC7lyd6SvS0VgOlcmCs4","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0216","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 a configurable delimiter and array handling strategy","exampleAgentPrompt":"Take this nested JSON object and flatten it into a single-level structure using '.' as the delimiter, and handle arrays by index so I can load it into BigQuery.","exampleUseCases":[{"title":"Flatten API response for database ingestion","prompt":"I have a deeply nested JSON from our CRM API with customer objects inside accounts inside regions — can you flatten it into a single-level dot-notation map so I can insert it into a flat SQL table?"},{"title":"Normalize config file for key-value store","prompt":"Here's a nested YAML-converted JSON config file. Flatten it using '_' as the delimiter so I can push every setting as a separate key into Redis."},{"title":"Prepare nested JSON for CSV export","prompt":"I've got a JSON blob with nested address and metadata fields that I need to flatten — stringify the arrays and use '.' as the separator — so each field becomes its own column in a CSV."}],"resultDescription":"A flat, single-level JSON object where all nested keys are collapsed into dot-delimited (or custom-delimited) paths, arrays are handled per the chosen strategy (indexed or stringified), and every call includes a Strale audit record with cryptographic chain hash for traceability.","failureModes":["Missing required 'data' query parameter returns validation error","Malformed or non-JSON input causes parse failure","Unsupported array_handling value returns schema validation error","Circular references in JSON may cause processing failure or timeout","Extremely large or deeply nested JSON may exceed processing limits"],"whenToPreferThis":"Choose this endpoint when you need a reliable, audited JSON flattening operation with configurable delimiter and array handling, especially in compliance-sensitive pipelines where the cryptographic audit chain matters. Prefer it over ad-hoc code when you need consistent behavior across 27 countries' data formats and want a REST-accessible, pay-per-call transformation without managing infrastructure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:42:44.970Z","isFirstParty":false}