Metadata-Version: 2.0
Name: printjson
Version: 1.0.1
Summary: Console utility for pretty JSON output
Home-page: https://github.com/Miku-chan/printjson/
Author: Miku
Author-email: andrew.051010@gmail.com
License: MIT
Description-Content-Type: UNKNOWN
Keywords: json highlight color print shell utility
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: POSIX
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.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Utilities

Utility for pretty JSON output
==============================

Simple python utility for using in shell scripts.

Features
--------

- Print colorized JSON
- Minimized and formatted output
- Output elements by keys and indexes
- Check JSON for correctness
- Automatically disabling color sequences, when prints to pipeline, file or other non-tty output

Examples
--------

- test.json

.. code-block:: json

        {
          "arr": [
            123,
            "λάμβδα ラムダ lambda",
            [
              "1",
              "2"
            ]
          ],
          "test": "test"
        } 

- Colorized indented

.. code-block:: bash

        printjson test.json

- Minimized monochrome

.. code-block:: bash

        printjson -om test.json

Result:

.. code-block:: json

        {"test":"test","arr":[123,"λάμβδα ラムダ lambda",["1","2"]]}

- Print third entry of "arr" array, using "__" as delimiter

.. code-block:: bash

        printjson -k 'arr__2' -d '__' test.json

Result:

.. code-block:: json

        [
          "1",
          "2"
        ]





