{"id":"json-array-count","version":"1.0.0","description":"Count structural occurrences in a JSON array in first-seen order.","supported_operations":["json array count","count json values","json value histogram"],"unsupported_operations":["sort by count","reference identity"],"semantics":["Accept only JSON values: null, boolean, finite number, string, array, and plain objects.","Reject NaN, Infinity, -Infinity, undefined, BigInt, functions, symbols, Date, Map, Set, RegExp, boxed primitives, Buffer, and sparse holes.","Canonicalize -0 to 0.","Objects may have null or Object.prototype; use own enumerable string keys only.","Treat __proto__, constructor, and toString as ordinary own keys. Never mutate Object.prototype.","Output objects must be Object.create(null). Deep-clone all returned JSON values.","Bound walk: max depth 32, max nodes 10000, max UTF-8 JSON bytes 250KiB of the input document string if provided as text; when json is already a value, bound the walked node count and depth.","items must be a JSON array.","Equality as json-deep-equal. First-seen order.","Each output item is { value: clone, count } with null-prototype objects."],"limits":{"max_json_depth":32,"max_json_nodes":10000,"max_items":10000},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["items"],"properties":{"items":{"type":"array","maxItems":10000}}},"output_schema":{"type":"object","additionalProperties":false,"required":["items","items_in","unique"],"properties":{"items":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["value","count"],"properties":{"value":{},"count":{"type":"integer"}}}},"items_in":{"type":"integer"},"unique":{"type":"integer"}}},"examples":[{"input":{"items":[1,1,"1"]},"output":{"items":[{"value":1,"count":2},{"value":"1","count":1}],"items_in":3,"unique":2}}],"execute_url":"/v1/tools/json-array-count/versions/1.0.0/execute"}