Skip to content

View JSON key or item counts for each JSON object or array.

License

Notifications You must be signed in to change notification settings

nickcosmo/json-key-count

Repository files navigation

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

About

View JSON key or item counts for each JSON object or array.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published