Data::Compare::Plugins::JSON - plugin for Data::Compare to handle JSON::PP::Boolean and JSON::XS::Boolean objects.
JSON::PP and JSON::XS provides instances of JSON::PP::Boolean and JSON::XS::Boolean classes. It's JSON::PP::true, JSON::PP::false, JSON::XS::true, and JSON::XS::false. This plugin enables Data::Compare to compare this values.
If you compare a scalar and a JSON::PP::Boolean or JSON::XS::Boolean object, then they will be compared as scalar and 0 (for *::false) or 1(for *::true).
0
1
If you compare two JSON::PP::Boolean or JSON::XS::Boolean objects, then they will be considered the same if two values are equal for == operator.
==
Data::Compare.
http://github.com/dionys/data-compare-plugins-json
http://github.com/dionys/data-compare-plugins-json/issues
Denis Ibaev, dionys@cpan.org for Setup.ru.
dionys@cpan.org
Copyright (C) 2013, Denis Ibaev.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://dev.perl.org/licenses/ for more information.
To install Data::Compare::Plugins::JSON, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Compare::Plugins::JSON
CPAN shell
perl -MCPAN -e shell install Data::Compare::Plugins::JSON
For more information on module installation, please visit the detailed CPAN module installation guide.