A set of tools to manipulate JSON: diff, patch, pretty-printing
Project description
json_tools is a Python package and CLI utility set to manipulate JSON documents
using JSON patch specification: <http://tools.ietf.org/html/draft-ietf-appsawg-json-patch-02>
Installation
============
``pip install json_tools``
Usage (CLI)
===========
Pretty-printing
---------------
``json print [options] [file_name]``
The ``file_name`` is optional: if not given the input document is read from STDIN.
Options
-------
``-c, --color``
Colorize output (used only in TTY mode).
Diff
----
``json diff first.json second.json``
Patch
-----
``json patch document.json patch.json``
Source code
===========
Source code and Wiki are available on BitBucket: <https://bitbucket.org/vadim_semenov/json_tools>
Feel free to fork and make bug-reports/feature-requests.
using JSON patch specification: <http://tools.ietf.org/html/draft-ietf-appsawg-json-patch-02>
Installation
============
``pip install json_tools``
Usage (CLI)
===========
Pretty-printing
---------------
``json print [options] [file_name]``
The ``file_name`` is optional: if not given the input document is read from STDIN.
Options
-------
``-c, --color``
Colorize output (used only in TTY mode).
Diff
----
``json diff first.json second.json``
Patch
-----
``json patch document.json patch.json``
Source code
===========
Source code and Wiki are available on BitBucket: <https://bitbucket.org/vadim_semenov/json_tools>
Feel free to fork and make bug-reports/feature-requests.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
json_tools-0.1.29.tar.gz
(5.4 kB
view hashes)