{"uid":"cap_LkeanthkJRFW8eoSybS7l","slug":"uos-genesis-normalize-json-cc8f4170","name":"UOS Genesis normalize_json","description":"UOS Genesis machine utility: normalize_json","url":"https://genesis.palsus2023.workers.dev/v1/normalize_json","method":"POST","headers":{},"bodySchema":{"type":"object","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object"},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json"],"type":"string"}},"additionalProperties":true},"output":{"type":"object"}},"additionalProperties":true},"responseSchema":null,"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_D5P0Mru6U2L10I0-UARTA","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":"Normalizes a JSON payload into a canonical, consistently-structured format","exampleAgentPrompt":"Take this JSON blob and normalize it into a clean, canonical structure: {\"Name\":\"Alice\",\"AGE\":30,\"address\":{\"City\":\"Boston\"}}","exampleUseCases":[{"title":"Standardize inconsistent API responses","prompt":"I'm getting JSON back from multiple third-party APIs with inconsistent key casing and structure — can you normalize all of them into a clean, canonical format using this JSON: {\"UserID\":\"123\",\"user_name\":\"alice\",\"EMAIL\":\"alice@example.com\"}?"},{"title":"Pipeline data normalization before storage","prompt":"Before I save this to the database, normalize this JSON so all the keys and structure are consistent: {\"Order_ID\":\"ORR-99\",\"Total_Amount\":49.99,\"customer\":{\"FIRST_NAME\":\"Bob\"}}"},{"title":"Fix casing inconsistencies from user input","prompt":"A user submitted this form data as JSON and the keys are all over the place — normalize it for me: {\"FirstName\":\"Sara\",\"last_name\":\"Jones\",\"PhoneNumber\":\"555-1234\"}"}],"resultDescription":"Returns a normalized JSON object with standardized key formatting, consistent structure, and canonical representation of the input data.","failureModes":["Invalid or malformed JSON input returns an error response","Empty payload may result in a 400 bad request","Deeply nested or extremely large JSON may cause timeouts","Non-JSON content type may be rejected","Missing required fields in input body returns error"],"whenToPreferThis":"Choose this endpoint when you need to canonicalize JSON data from heterogeneous sources with inconsistent key casing, structure, or formatting before further processing, storage, or comparison. It is especially useful in data pipeline stages where consistency is required across multiple inputs. Prefer it over manual normalization or regex-based approaches for reliability and speed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:31:25.274Z","isFirstParty":false}