Metadata-Version: 1.1
Name: objectjson
Version: 0.1.3
Summary: A python tool to create Python objects from large, complicated JSON objects. Dictionaries are great and all, but large nested ones can get tedious.
Home-page: https://github.com/abmohan/objectjson
Author: Ashwin Balamohan
Author-email: abmohan@gmail.com
License: Apache 2.0
Download-URL: https://github.com/abmohan/objectjson/tarball/master
Description: ObjectJSON
        ==========
        
        .. image:: https://badge.fury.io/py/objectjson.png
            :target: http://badge.fury.io/py/objectjson
            :alt: Latest PyPI version
        
        .. image:: https://pypip.in/d/objectjson/badge.png
            :target: https://crate.io/packages/objectjson/
            :alt: Number of PyPI downloads
        
        ObjectJSON is a tool to create Python objects from large, complicated JSON
        objects.
        
        Dictionaries are great and all, but large nested ones can get tedious. objectjson will use Python's getattr function to allow you to recursively access deserialized JSON objects as if they were regular Python objects.
        
        Usage
        -----
        
        Instantiate ObjectJSON with a string or dictionary and read from it as you would any other python object.
        
        .. code:: python
        
            from objectjson import ObjectJSON
        
            json_str = '{ "test": {"a":1,"b": {"c":3} } }'
        
            json_obj = ObjectJSON(json_str)
        
            print(json_obj)           # {'test': {'b': {'c': 3}, 'a': 1}}
            print(json_obj.test)      # {'b': {'c': 3}, 'a': 1}
            print(json_obj.test.a)    # 1
            print(json_obj.test.b.c)  # 3
        
        
        Unsupported Features (as of now)
        --------------------------------
        
        The following features are yet to be implemented in objectjson:
        - Instantiation with Python 2.x unicode strings
        - The ability to set properties using something like :code:`json_obj.test.b.c=30` (as per the object in the 'usage' section)
        
        
        Installation
        ------------
        
        To install objectjson, simply:
        
        .. code-block:: bash
        
            $ pip install objectjson
        
        Attribution
        -----------
        
        This project is based on a code sample found on
        http://ideone.com/O6KGB3, but modified for Python 3 compatibility. The
        site above does not provide any reference to the author of the code. If
        this is your project, please let me know so I can give you the credit
        you deserve and add you as a contributor to this project. In the mean
        time, I've put this code up on `Github`_ and `PyPi`_ so that it may be
        programatically imported and used in projects.
        
        Contribute
        ----------
        
        Feel free to:
        - open issues for bugs you've noticed or enhancements you'd like to see
        - fork `the repository`_ to start working on open issues (pls also submit tests that demonstrate that the issue can be closed)
        - volunteer to improve the documentation
        
        
        .. _`the repository`: http://github.com/abmohan/objectjson
        .. _`Github`: http://github.com/abmohan/objectjson
        .. _`PyPi`: https://pypi.python.org/pypi/objectjson
        
        
        .. :changelog:
        
        Release History
        ---------------
        
        0.1.3 (2014-10-05)
        ++++++++++++++++++
        * Added rst files to MANIFEST.in (Issue #5)
        * Minor updates to README
        
        0.1.2 (2014-10-05)
        ++++++++++++++++++
        * Converted README.md file to README.rst (Issue #4)
        * Added title, version, author, and license attributes and other details to __init__.py
        * Converted CHANGES.txt file to a more detailed HISTORY.rst
        
        0.1.1 (2014-10-05)
        ++++++++++++++++++
        * Fixed pip install error (Issue #2)
        
        0.1 (2014-10-04)
        ++++++++++++++++
        * Initial release
        * The class will use Python's getattr function to allow you to recursively access deserialized JSON objects as if they were regular Python objects
        
Keywords: json
Platform: UNKNOWN
