{"uid":"cap_MlHDIqdRF_K7mHR2HqhyV","slug":"delx-commerce-json-object-rename-keys-faa9d0d6","name":"Delx Commerce — JSON Object Rename Keys","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/json-object-rename-keys?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"object":{"type":"object","description":"Object supplied to JSON Object Rename Keys; used only for this bounded calculation and processed in memory without retention.","maxProperties":128,"additionalProperties":true},"mapping":{"type":"object","description":"Mapping supplied to JSON Object Rename Keys; used only for this bounded calculation and processed in memory without retention.","maxProperties":128,"additionalProperties":true}}},"responseSchema":{"type":"json","example":{"result":{"object":{"id":1,"firstName":"Ada"},"collisions":[]},"schema":"delx/util-json-object-rename-keys/v1","status":"pass","evidence":{"retained":false,"input_sha256":"17b6ed7c6acbd73e4c278919af805585c725f614019bd98fd34297fddb0367ca","external_calls":0},"operation":"data_batch:json_object_rename_keys"}},"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_we9Ph3tnxhxmvobzh0vdW","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":"Renames the keys of a JSON object according to a provided key mapping, returning the transformed object with collision tracking.","exampleAgentPrompt":"Rename the keys in this JSON object — change 'first_name' to 'firstName' and 'last_name' to 'lastName': {\"first_name\": \"Ada\", \"last_name\": \"Lovelace\", \"id\": 1}.","exampleUseCases":[{"title":"API response schema normalization","prompt":"I'm getting a response from a third-party API with snake_case keys like 'user_id' and 'created_at', but my system expects camelCase. Can you rename all the keys in this object: {\"user_id\": 42, \"created_at\": \"2024-01-01\"} — map 'user_id' to 'userId' and 'created_at' to 'createdAt'?"},{"title":"Database field name migration","prompt":"I have a record from our old database schema that uses abbreviations: {\"usr_nm\": \"ada\", \"acct_no\": \"123\", \"bal\": 500.0}. Rename those keys to their full names — 'usr_nm' to 'username', 'acct_no' to 'accountNumber', and 'bal' to 'balance'."},{"title":"Frontend data shape alignment","prompt":"Our backend returns {\"colour\": \"blue\", \"centre\": \"NYC\", \"organisation\": \"ACME\"} but our frontend expects American English spellings. Rename 'colour' to 'color', 'centre' to 'center', and 'organisation' to 'organization' in that object."}],"resultDescription":"Returns the input object with keys renamed according to the mapping, a list of any key collisions that occurred during renaming, a status field ('pass'), an evidence block confirming no data retention and including the SHA256 hash of the input, and a schema identifier for the operation.","failureModes":["Object or mapping exceeds 128 properties — request rejected","Invalid JSON structure in object or mapping fields — parse error","Key collision when two source keys map to the same target key — reported in collisions array","Payment failure or insufficient USDC balance — 402 response before processing","Malformed request body — missing required fields returns error"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, verifiable, pay-per-use key renaming operation on a JSON object without signing up for a service or managing API keys. Ideal for AI agents that need to normalize field names between schemas on the fly, especially when auditability (SHA256 evidence, no-retention guarantee) matters. Prefer over custom code when operating in a stateless agent pipeline that already uses USDC/x402 micropayments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:42.249Z","isFirstParty":false,"canonicalSlug":"delx-commerce-json-object-rename-keys-faa9d0d6"}