Test::Deep::JSON provides json($expected) function to expect that target can be parsed as a JSON string and matches (by cmp_deeply) with $expected.
WWW: http://search.cpan.org/dist/Test-Deep-JSON/
None