jsonasobj2
JSON as python objects - version 2
What it is and what it does
jsonasobj2 is a lightweight utility that wraps JSON data so you can access fields using Python's dot notation (obj.key) instead of dictionary syntax (obj['key']). It was designed to make JSON manipulation feel more natural in Python code by converting parsed JSON into objects with attribute-style access.
The package is stable but abandoned—it has not been updated since June 2021 and receives no active maintenance. It depends on hbreader for its core functionality. With no known vulnerabilities and permissive CC0 licensing, it poses no legal or security barriers to use, but you should be aware that any bugs or compatibility issues with newer Python versions will not be fixed by the original maintainer.
Use it for:
- Convert API responses from JSON format into Python objects for cleaner, more readable code.
- Simplify data access in scripts that work with JSON configuration files or data exports.
- Prototype quick utilities where dot notation feels more natural than dictionary key lookups.
- Migrate legacy code that expects object attributes over dictionary-style access patterns.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Converts JSON data into Python objects with attribute-style access, allowing you to work with JSON as dot-notation properties instead of dictionary keys.
Yes, if you need dot-notation JSON access and can tolerate an unmaintained package. The low install friction, permissive license, and lack of known vulnerabilities make it safe to use in stable, non-critical contexts. However, do not rely on it for production systems requiring active maintenance or Python version updates beyond 3.9.
Install
jsonasobj2 on PyPI
pip
pip install jsonasobj2uv
uv add jsonasobj2poetry
poetry add jsonasobj2Installing jsonasobj2
Before you install
Low install friction with a single runtime dependency (hbreader). However, the package is abandoned—last commit was 2022-03-22, over 1899 days ago. No active maintenance or security updates should be expected.
License in practice
Licensed under CC0 1.0 Universal (public domain), which places no restrictions on use, modification, or redistribution. You may use this freely in any context.
Quickstart
pip install jsonasobj2
import jsonasobj2
obj = jsonasobj2.JsonAsObj2(json_string_or_dict)
value = obj.some_key # access via dot notation
Requires Python 3.6 or later; depends on hbreader at runtime.
Verify before relying
- What hbreader provides and whether it introduces additional dependencies or system requirements.
- Whether the package's single runtime dependency (hbreader) is itself maintained or has known issues.
Package facts
| License | CC0 1.0 Universal (permissive) |
| Python support | supports the current Python release (>=3.6) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — hbreader |
| Maintenance | abandoned — 1,899 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 302,027/month — #7,827 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: jsonasobj2-1.0.4-py3-none-any.whl
Keywords: json
Tags
More Libraries packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
python-dateutilProvides parsing, arithmetic, and recurrence…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
jsonasobjConverts JSON data into Python objects with…
permissive · top 15,000 on PyPI
python-benedictA dict subclass that adds dot-notation access,…
permissive · top 5,000 on PyPI
mo-dotsProvides null-safe dot-notation access to…
copyleft · top 15,000 on PyPI
munchMunch provides a dictionary subclass that…
permissive · top 5,000 on PyPI
easydictEasyDict wraps Python dictionaries to allow…
copyleft · top 5,000 on PyPI
super-collectionsConverts nested JSON and YAML data into Python…
permissive · top 5,000 on PyPI
python-boxBox wraps Python dictionaries to enable…
permissive · top 5,000 on PyPI
dotmapDotMap is a dict subclass that lets you access…
permissive · top 5,000 on PyPI
untangleConverts XML documents into Python objects with…
permissive · top 15,000 on PyPI
prodictProdict wraps Python dictionaries to allow…
permissive · top 15,000 on PyPI