Python library for converting JSON to Python objects and back, version 2. Current version 1.0.4, updated June 2023. Active development with infrequent releases.
pip install jsonasobj2Verified import paths — ran on the pinned version, not inferred.
Create and manipulate JSON objects using attribute access. JsonObj wraps dict and allows dot notation.
Replace 'import jsonasobj' with 'from jsonasobj2 import JsonObj'.
Use obj['class'] or setattr(obj, 'class', value) if needed.
Assign the result: obj = JsonObj.from_json(json_string).
Use: from jsonasobj2 import JsonObj
Use JsonObj.from_json(json_string) as a class method.
No dependency data recorded yet.