{"uid":"cap_KuoaWIPSRzsTdo3lCMJHp","slug":"g-forge-deduplicate-json-75a79e26","name":"G-Forge Deduplicate JSON","description":"Clean repeated JSON records before the next workflow step. Remove exact duplicate values while preserving the first occurrence and original order. Works with arrays containing objects, nested values and scalars; object-key order does not create a new value. Up to 5,000 items.","url":"https://api.getretold.com/services/agent-deduplicate-json/invoke?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"value":{"type":"array","maxItems":5000}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_7PWIlouMXemKASmzCRoSa","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Removes exact duplicate items from a JSON array, preserving the first occurrence and original order, for up to 5,000 items.","exampleAgentPrompt":"I've got a JSON array of customer records with some duplicates — can you deduplicate it and give me back only the unique entries, keeping the first time each one appeared?","exampleUseCases":[{"title":"Deduplicating API response records","prompt":"I just fetched a list of products from our API and there are repeated entries in the JSON array — can you deduplicate it so I only get each unique product once, in the original order?"},{"title":"Cleaning merged data exports","prompt":"I combined two JSON data exports and ended up with a lot of duplicate objects in the array. Can you clean it up by removing exact duplicates and keeping just the first occurrence of each?"},{"title":"Deduplicating event log entries","prompt":"I have a JSON array of up to 3,000 event log entries and some events got recorded more than once. Can you deduplicate the array so each event only appears once, preserving the original sequence?"}],"resultDescription":"A JSON array containing only the unique items from the input, with duplicates removed and first occurrences preserved in their original order. Object-key ordering is normalized so that objects with the same keys and values in different orders are treated as equal.","failureModes":["Input array exceeds 5,000 items — request rejected","Malformed JSON input — parsing error returned","Empty array input — returns empty array with no error","Non-array value provided — schema validation error"],"whenToPreferThis":"Choose this endpoint when you need to remove exact duplicate entries from a JSON array as part of a data-cleaning or ETL pipeline, especially when preserving original order and first-occurrence semantics matters. It handles objects, nested values, and scalars, and normalizes key order in objects before comparison. Prefer it over manual deduplication logic when operating within the 5,000-item limit and you want a simple, single-call solution.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-24T12:33:35.060Z","isFirstParty":false,"canonicalSlug":"g-forge-deduplicate-json-75a79e26"}