nddiff - diff tool for nested data structures
nddiff [OPTIONS] <file1> <file2> [<file3> ... ]
Diff for nested data structures with human friendly (colored) and machine-readable (JSON) output format.
Show where differences has happend, but don't show what exactly changed.
On/Off colors for diff.
Amount of lines for multiline values context. Default is 3.
Don't suppresss common items in JSON mode.
Print full headers (delta printed by default).
Grep substructures to diff. See path syntax description at https://metacpan.org/pod/Struct::Path::PerlStyle
Print a help message and exit.
Force specified input format usage. Automatically choosed (using file extension) if omitted.
Ignore substructure. May be used several times.
Use JSON as output diff format.
On/Off pretty-print for JSON. Enabled by default.
Don't show diff, only exit code shows exists diff or not.
Dump diff as rules for ndproc.
Visualize diff (JSON formatted diff file must be provided as argument).
Increase verbosity, max level - 4.
Print version and exit.
Human-friendly diff:
nddiff a.json b.json
Machine-readable diff:
nddiff --json a.json b.json
0 No errors, no diff. 1 Generic error code. 2 I/O Error. 4 Path related errors. 8 Diff exists.
Report bugs to https://github.com/mr-mixas/NDTools/issues
App::NDTools::ndpatch, App::NDTools::ndproc, App::NDTools::ndquery
App::NDTools::NDDiff
Copyright 2016-2018 Michael Samoglyadov <mixas at cpan.org>.
<mixas at cpan.org>
This program is free software; you can redistribute it and/or modify it under the terms of GNU General Public License 3 or later versions.
To install App::NDTools, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::NDTools
CPAN shell
perl -MCPAN -e shell install App::NDTools
For more information on module installation, please visit the detailed CPAN module installation guide.