use Test::More;
use Test::WWW::Mechanize::Catalyst 'RestTest';
use HTTP::Request::Common;
-use JSON;
+use JSON::MaybeXS;
-my $json = JSON->new->utf8;
+my $json = JSON::MaybeXS->new(utf8 => 1);
my $mech = Test::WWW::Mechanize::Catalyst->new;
ok( my $schema = DBICTest->init_schema(), 'got schema' );
is( $rs->count, 3, 'no records created' );
my $response = $json->decode( $mech->content );
- is( $response->{success}, JSON::false,
+ is( $response->{success}, JSON::MaybeXS::false,
'success property returns unquoted false' );
like(
$response->{messages}->[0],