Metadata-Version: 2.1
Name: jsonobj
Version: 0.1.0
Summary: Wrapper module to provide a simple property accessor for JSON objects.
Home-page: https://github.com/skitschy/pyJSONobj
Author: skitchy
Author-email: s1kitschy@gmail.com
License: MIT
Project-URL: Documentation, https://pyjsonobj.readthedocs.io/
Project-URL: Source, https://github.com/skitschy/pyJSONobj
Keywords: json
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: License :: OSI Approved :: MIT License
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Requires-Python: >=2.7, !=3.0.*
Description-Content-Type: text/markdown

# JSONobj

JSONobj is a Python module
for providing attribute-like access to the properties of JSON objects.


## Requirement

* Python 2.7 or above


## Installation

```sh
pip install jsonobj
```


## Basic Usage

```python
>>> import jsonobj
>>> obj = jsonobj.loads('{"prop1": "value"}')
>>> obj.prop1
'value'
>>> obj.prop1 = 'changed'
>>> obj.prop2 = ['foo', 'bar', {'fiz': 'buz'}]
>>> 'prop2' in obj
True
>>> obj.dict
{'prop1': 'changed', 'prop2': ['foo', 'bar', {'fiz': 'buz'}]}
>>> obj.prop2[2].fiz
'buz'
>>> del obj.prop1
>>> jsonobj.dumps(obj)
'{"prop2": ["foo", "bar", {"fiz": "buz"}]}'
```


## Documentation

Documentation is [available online](https://pyjsonobj.readthedocs.io/).


