A Python library for treating JSON data as Python objects, providing dict-like access with attribute-style syntax. Current version is 1.3.1 (stable) with v2.0.x pre-releases introducing breaking changes. Development is ongoing with pre-release versions.
pip install jsonasobjVerified import paths — ran on the pinned version, not inferred.
Basic usage creating a JsonObj and accessing attributes.
Import from jsonasobj2 instead of jsonasobj, or pin to v1.3.1 for compatibility.
Upgrade to Python 3 and use latest version.
Use dict-style assignment (obj['key'] = value) to keep dict and attribute in sync.
Use `from jsonasobj import JsonObj` for v1.x, or install v2 pre-release with `pip install jsonasobj==2.0.2dev4` and import from jsonasobj2.
Use `JsonObj(json.loads(json_string))` instead.