Metadata-Version: 1.1
Name: hjson
Version: 1.5.6
Summary: JSON for Humans. A configuration file format with relaxed syntax, fewer mistakes and more comments.
Home-page: http://github.com/laktak/hjson-py
Author: Christian Zangl
Author-email: coralllama@gmail.com
License: MIT License
Description: hjson-py
        ========
        
        `Hjson`_, the Human JSON. A configuration file format for humans.
        Relaxed syntax, fewer mistakes, more comments.
        
        Hjson works with Python 2.5+ and Python 3.3+ (based on `simplejson`_)
        
        Installation
        ============
        
        -  ``pip install hjson``
        
        -  or download from https://pypi.python.org/pypi/hjson
        
        Usage
        =====
        
        .. code-block:: python
        
            import hjson
        
        Decoding Hjson
        --------------
        
        .. code-block:: python
        
            text = """{
              foo: a
              bar: 1
            }"""
        
            hjson.loads(text)
        
        Result:
        
        .. code-block:: python
        
            OrderedDict([('foo', 'a'), ('bar', 1)])
        
        Encoding Python object hierarchies
        ----------------------------------
        
        .. code-block:: python
        
            hjson.dumps({'foo': 'text', 'bar': (1, 2)})
        
        Result:
        
        ::
        
            {
              foo: text
              bar:
              [
                1
                2
              ]
            }
        
        Encoding as JSON
        ----------------
        
        Note that this is probably not as performant as the simplejson version.
        
        .. code-block:: python
        
            hjson.dumpsJSON(['foo', {'bar': ('baz', None, 1.0, 2)}])
        
        Result: ``'["foo", {"bar": ["baz", null, 1.0, 2]}]'``
        
        From the Commandline
        --------------------
        
        Use ``hjson.tool`` to validate and convert.
        
        ``python -m hjson.tool [FORMAT] [INFILE [OUTFILE]]``
        
        Formats:
        
        -  ``-h``: print Hjson
        -  ``-j``: print formatted JSON
        -  ``-c``: print compact JSON
        
        E.g. ``echo '{"json":"obj"}' | python -m hjson.tool``
        
        API
        ===
        
        `hjson-py`_
        
        .. _Hjson: http://hjson.org
        .. _simplejson: https://github.com/simplejson/simplejson
        .. _hjson-py: http://laktak.github.io/hjson-py/
        
Keywords: json comments configuration
Platform: any
