happytails.ai

Remove duplicates from a JSON array

Open Remove duplicates from a JSON array on Happytails.ai. This view has the same page content and links, with explicit tool capabilities. Read the processing notes before using a tool.

Tool capabilities

{
  "id": "json-array-unique",
  "category": "developer-tools",
  "built": true,
  "requirements": "Keeps the first occurrence of each structurally equal JSON value. Object key order is ignored; array order and types matter. The first object’s original key order is kept.",
  "implementation": {
    "fields": [],
    "live": true,
    "note": "Keeps the first occurrence of each structurally equal JSON value. Object key order is ignored; array order and types matter. The first object’s original key order is kept.",
    "experience": {
      "automatic": true,
      "single": false,
      "inputMaxLength": 1000000,
      "inputMode": "text",
      "label": "JSON",
      "placeholder": "{\"name\":\"Ada\",\"count\":2}",
      "help": "Use double-quoted property names and valid JSON values. Results update as you type. Up to 1,000,000 characters.",
      "helpParts": [
        "Use double-quoted property names and valid JSON values.",
        "Results update as you type.",
        "Up to 1,000,000 characters."
      ],
      "action": null
    },
    "mode": "automatic",
    "interactive": false
  },
  "execution": "Browser interface",
  "api": null,
  "browser_agent": {
    "supported": true,
    "name": "run_current_tool",
    "discovery": "WebMCP on the human page in a supporting browser",
    "verification": "See audit/API-AUDIT.md; availability is not verification"
  }
}

Page guide

Keep one copy of each distinct JSON value.

How to use Remove duplicates from a JSON array
  1. Paste a JSON array. Structural equality ignores the order of object keys, but keeps number and string types distinct. The first occurrence is retained.
  2. The two objects collapse into one. The string "1" and number 1 both remain, because they have different types. Nested array order matters.

Useful next steps

How to use it

Paste a JSON array. Structural equality ignores the order of object keys, but keeps number and string types distinct. The first occurrence is retained.

Try a small example

The two objects collapse into one. The string "1" and number 1 both remain, because they have different types. Nested array order matters.

What to know

Keeps the first occurrence of each structurally equal JSON value. Object key order is ignored; array order and types matter. The first object’s original key order is kept.