Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>JSON Key CountNew to Visual Studio Code? Get it now.
JSON Key Count

JSON Key Count

nickcosmo

|
13 installs
| (0) | Free
View JSON key or item counts for each JSON object or array.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

JSON Key Count

A Visual Studio Code extension that adds inline decorations to JSON files, showing the number of direct children for each object {#} or array [#].

Demo

Features

  • Inline annotations that show {#} or [#] next to each JSON key
  • Updates as you edit
  • Toggle decorations on/off globally or per-workspace

Settings

You can control whether decorations are enabled using either the command palette or settings:

Via Command Palette:

  • Toggle JSON Key Count (User)
  • Toggle JSON Key Count (Workspace)

Or in your settings.json:

"jsonKeyDecorations.enabled": true

Performance

This extension includes optimizations to avoid slowing down large JSON files:

  • Decorations are throttled during typing
  • Files over 10MB or 15,000 lines are skipped

Installation

Search for JSON Key Count in the VSCode Extensions Marketplace or go here: JSON Key Count

Contributing

Suggestions, issues, and pull requests are welcome! Open an issue or fork the project at: json-key-count

License

MIT

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