Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>JSON Collapsed CountNew to Visual Studio Code? Get it now.
JSON Collapsed Count

JSON Collapsed Count

JavelDev

|
3 installs
| (1) | Free
Shows the count of elements in collapsed JSON objects and arrays
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

JSON Collapsed Count

A VS Code extension that shows the count of elements in collapsed JSON objects and arrays.

Features

  • Displays the number of items when collapsing arrays
  • Shows the number of keys when collapsing objects
  • Works with both JSON and JSONC (JSON with comments) files
  • Lightweight and fast

Usage

  1. Open a JSON or JSONC file in VS Code
  2. Collapse any object or array to see the count of its elements
  3. The count will appear next to the collapsed section

Configuration

You can enable/disable the extension by modifying the following setting:

"jsonCollapsedCount.enabled": true

Example

Before collapsing:

{
  "users": [
    { "id": 1, "name": "John" },
    { "id": 2, "name": "Jane" },
    { "id": 3, "name": "Doe" }
  ]
}

After collapsing:

{
  "users": [...] // 3 items
}

Installation

  1. Clone this repository
  2. Run npm install
  3. Press F5 to start debugging
  4. The extension will be installed in the Extension Development Host instance of VS Code

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft