hjson
« Back to VersTracker
Description:
Convert JSON to HJSON and vice versa
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: json hjson configuration cli converter
Install: brew install hjson
About:
Hjson is a user-friendly configuration file format that strips away the strict syntax requirements of standard JSON. It allows for comments, trailing commas, and unquoted keys, making it significantly more readable and easier to edit for humans. This tool provides a command-line interface to seamlessly convert between Hjson and standard JSON formats.
Key Features:
  • Converts JSON to Hjson and vice versa
  • Supports multi-line strings and comments
  • Allows trailing commas for easier editing
  • Strict mode for validating input
Use Cases:
  • Editing configuration files without strict syntax constraints
  • Converting existing JSON data for human readability
  • Piping data between CLI tools in different formats
Alternatives:
  • jq – jq is a powerful JSON processor for filtering and transformation, whereas Hjson focuses on format conversion and human readability.
  • json5 – JSON5 is a similar standard for human-friendly JSON; Hjson is a distinct format with its own specific syntax rules.
Version History
Detected Version Rev Change Commit