json_diff

Crates.iojson_diff
lib.rsjson_diff
version0.1.2
sourcesrc
created_at2019-11-24 09:44:44.616684
updated_at2020-09-22 18:03:39.224073
descriptionA small diff tool utility for comparing jsons
homepagehttps://github.com/ksceriath/json-diff
repositoryhttps://github.com/ksceriath/json-diff
max_upload_size
id183920
size2,520,490
ksceriath (ksceriath)

documentation

README

json-diff

json-diff is a command line utility to compare two jsons.

Input can be fed as inline strings or through files.
For readability, output is neatly differentiated into three categories: keys with different values, and keys not present in either of the objects.
Only missing or unequal keys are printed in output to reduce the verbosity.

Screenshot of diff results

A screenshot of a sample diff with json_diff

Usage Example:

$ json_diff f source1.json source2.json
$ json_diff d '{...}' '{...}'

Option:

f : read input from json files
d : read input from command line

Installation

Currently, json-diff is available through crates.io (apart from building this repo directly). For crate installation,

  • Install cargo, through rustup
    $ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

  • Install json-diff
    $ cargo install json_diff

Commit count: 29

cargo fmt