A Visual Studio Code extension that adds inline decorations to JSON files, showing the number of direct children for each object {#} or array [#].
- Inline annotations that show
{#}or[#]next to each JSON key - Updates as you edit
- Toggle decorations on/off globally or per-workspace
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": trueThis extension includes optimizations to avoid slowing down large JSON files:
- Decorations are throttled during typing
- Files over 10MB or 15,000 lines are skipped
Search for JSON Key Count in the VSCode Extensions Marketplace or go here: JSON Key Count
Suggestions, issues, and pull requests are welcome! Open an issue or fork the project at: json-key-count
