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, JSON::PP and JSON::XS boolean constants.

DESCRIPTION

JSON, JSON::PP and JSON::XS provides instances of JSON::PP::Boolean, JSON::backportPP::Boolean, and JSON::XS::Boolean classes. It's JSON::true, JSON::false, 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, JSON::backportPP::Boolean, or JSON::XS::Boolean object and an ordinary scalar

If you compare a scalar and a JSON::PP::Boolean, JSON::backportPP::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, JSON::backportPP::Boolean, or JSON::XS::Boolean objects

If you compare two JSON::PP::Boolean, JSON::backportPP::Boolean, or JSON::XS::Boolean objects, then they will be considered the same if two values are equal for eq operator.

SEE ALSO

Data::Compare.

SUPPORT

AUTHOR

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

COPYRIGHT AND LICENSE

Copyright (C) 2013-2014, 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.