# README
JSONDIFF
Based on: https://github.com/elgris/jsondiff
A simple little tool that produces readable diff of 2 JSON-able
(read "convertible to map[string]interface{}
") objects. Useful
for diagnostics or debugging.
A command line interface that uses this is: https://github.com/pschlump/check-json-syntax It also provides syntax checking for JSON files.
Installation
go get github.com/elgris/jsondiff
Examples of the output

Limitation
- Coloured output tested with terminals only. This only works on Mac and Linux. I will modify this so it works on windows in a few days.
- The tool converts input data into
map[string]interface{}
or[]interface{}
with json encoding/decoding. Hence, types of input map will change during unmarshal step: integers become float64 and so on (check https://golang.org/pkg/encoding/json/ for details).
License
MIT
# Functions
Compare produces list of diff items that define difference between objects "a" and "b".
CompareFiels will read in 2 files, hopefully both JSON, and perform the compare on them.
CompareMemToFile compares an in memory structure to a file.
Format produces formatted output for a diff that can be printed.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
ResolutionType defines a type of comparison: equality, non-equality, new sub-diff and so on.