jsonfmt
« Back to VersTracker
Description:
Like gofmt, but for JSON files
Type: Formula  |  Tracked Since: Dec 26, 2025
Links: Homepage  |  GitHub  |  @caarlos0  |  formulae.brew.sh
Stars: 99  |  Forks: 3  |  Language: Go  |  Category: Developer tools
Tags: json formatter gofmt cli developer-tools
Install: brew install jsonfmt
About:
jsonfmt is a command-line utility that formats JSON files in a consistent, human-readable style. It parses JSON input and outputs it with standardized indentation and structure, similar to how gofmt handles Go code. This tool helps maintain clean, uniform JSON files across projects, making them easier to read, review, and version control.
Key Features:
  • Consistent formatting with configurable indentation
  • Preserves JSON validity while reformatting
  • Simple CLI interface for easy integration
  • Supports both files and stdin input
Use Cases:
  • Standardizing JSON configuration files before committing to version control
  • Cleaning up minified JSON for debugging and code review
  • Enforcing consistent JSON style across team projects
Alternatives:
  • jq – More powerful query tool but heavier dependency
  • prettier – Full-featured formatter for multiple languages, not JSON-specific
Version History
Detected Version Rev Change Commit
Dec 26, 2025 12:42pm 0 META 03394498