Wednesday, June 24, 2009

Command line JSON diff

Very simple way of comparing one json chunk with another.

Moved script here

Usage:

krogebry@krogebry-desktop:~/kson$ ./json_diff.rb file_left.json file_right.json
manifest:
node1:
Left: gentoo :: Right: gentoo
Left: localhost :: Right: localhost
node2:
Left: RHEL4 :: Right: RHEL5 !! Found diffrence here!!
Left: localhost :: Right: localhost
krogebry@krogebry-desktop:~/kson$