The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Data::Compare::Plugins::JSON - plugin for Data::Compare to handle JSON::PP::Boolean and JSON::XS::Boolean objects.

DESCRIPTION

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.

comparing a JSON::PP::Boolean or JSON::XS::Boolean object and an ordinary scalar

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).

comparing two JSON::PP::Boolean or JSON::XS::Boolean objects

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.

SEE ALSO

Data::Compare.

SUPPORT

Repository

http://github.com/dionys/data-compare-plugins-json

Bug tracker

http://github.com/dionys/data-compare-plugins-json/issues

AUTHOR

Denis Ibaev, dionys@cpan.org for Setup.ru.

COPYRIGHT AND LICENSE

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.