JSON::Diffable - A relaxed and easy diffable JSON variant
use JSON::Diffable qw( encode_json decode_json ); $json = encode_json $data; $data = decode_json $json;
This module allows to create a JSON variant that is suitable for easy diffing. This means:
Commas after each hash or array element.
One line per entry
my $json = encode_json($data);
Turns a Perl data structure into diffable JSON.
my $data = decode_json($json);
Turns relaxed JSON into a Perl data structure.
Robert Sedlacek <firstname.lastname@example.org>
The development of this module was sponsored by http://socialflow.com/.