hjson
Hjson, a user interface for JSON.
Decision gist · record as of 2026-08-14
Yes, if you need Hjson support and accept the aging maintenance status. The package is stable, has no known vulnerabilities, and carries no install friction. However, verify that it supports your target Python version, since classifiers only list up to 3.5 and the last release was 2022; for modern Python projects, confirm compatibility before committing to it.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with no runtime dependencies.
- Maintenance is aging—last release was in 2022 and the last commit in 2025, with no recent activity signals, though the package remains stable and archived status is false.
License · maintenance · safety
MIT License (permissive) — Licensed under MIT License (permissive), allowing free use, modification, and distribution with minimal restrictions.
last release 2022-08-13 (1462 days) · last repo commit 2025-11-02 · 221 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 5,543,005 downloads/mo, #2,078 on PyPI
Alternatives
Verify before relying
pip install hjson
import hjson
text = '{foo: a, bar: 1}'
result = hjson.loads(text)
print(result) # OrderedDict([('foo', 'a'), ('bar', 1)])- Whether the package is actively maintained or if aging status indicates it may not receive security updates or bug fixes going forward.
- Current compatibility with modern Python versions beyond those listed in classifiers (3.5 was the latest listed; current support is unspecified).
What it is and what it does
hjson is a Python parser and encoder for Hjson, a human-friendly variant of JSON that allows comments, unquoted keys, trailing commas, and other relaxations to make configuration files and data more readable. It provides `loads()` and `dumps()` functions to convert between Hjson text and Python objects, plus `dumpsJSON()` to output strict JSON. The package has no runtime dependencies and works as a pure Python library.
It's useful when you want JSON-like data structures but need the flexibility of comments and relaxed syntax for configuration files or hand-edited data. The package includes a command-line tool for converting between Hjson and JSON formats. However, maintenance is aging—the last release was in 2022—so it may not receive updates for newer Python versions or security issues.
Use it for
- Parse configuration files written in Hjson format with comments and unquoted keys instead of strict JSON.
- Convert human-written Hjson data to Python objects or standard JSON for downstream processing.
- Use the command-line tool to validate or reformat Hjson files to JSON on the fly.
- Embed Hjson parsing in applications that accept user-friendly configuration syntax.
- Store structured data with inline comments in a format more readable than JSON.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need Hjson support and accept the aging maintenance status.
The package is stable, has no known vulnerabilities, and carries no install friction. However, verify that it supports your target Python version, since classifiers only list up to 3.5 and the last release was 2022; for modern Python projects, confirm compatibility before committing to it.
Install
hjson on PyPI
Before you install
Low install friction with no runtime dependencies. Maintenance is aging—last release was in 2022 and the last commit in 2025, with no recent activity signals, though the package remains stable and archived status is false.
License in practice
Licensed under MIT License (permissive), allowing free use, modification, and distribution with minimal restrictions.
Quickstart
pip install hjson
import hjson
text = '{foo: a, bar: 1}'
result = hjson.loads(text)
print(result) # OrderedDict([('foo', 'a'), ('bar', 1)])
Verify before relying
- Whether the package is actively maintained or if aging status indicates it may not receive security updates or bug fixes going forward.
- Current compatibility with modern Python versions beyond those listed in classifiers (3.5 was the latest listed; current support is unspecified).
Package facts
| License | MIT License permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Aging 1,462 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 5,543,005 / month, #2,078 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Academic Free License (AFL)License :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.6Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Libraries :: Python Modules |
Evidence: hjson-3.1.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “hjson parser python”
- hjsonParses and generates Hjson (a human-friendly JSON variant with…
- dvsimDVSim is a Python-based build and run system that orchestrates EDA…
- super-collectionsConverts nested JSON and YAML data into Python objects with…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also dirtyjson · json-five · pyhocon · ujson · perky · json5kit · json-tricks · partialjson · simplejson · json5