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

Build Status

NAME

Test2::Tools::JSON - Compare JSON string as data structure with Test2

SYNOPSIS

use Test2::V0;
use Test2::Tools::JSON;

is {
    foo     => 'bar',
    payload => '{"a":1}',
}, {
    foo     => 'bar',
    payload => json({a => E}),
};

DESCRIPTION

Test2::Tools::JSON provides comparison tools for JSON string. This module was inspired by Test::Deep::JSON.

FUNCTIONS

SEE ALSO

Test::Deep::JSON

Test2::Suite, Test2::Tools::Compare

LICENSE

Copyright (C) Takumi Akiyama.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

Takumi Akiyama t.akiym@gmail.com