use strict;
use warnings;
use Test::More;
-use DOM::Tiny::Collection 'c';
-use JSON::Tiny 'encode_json';
+use DOM::Tiny::_Collection;
+use JSON::PP ();
+
+sub c { DOM::Tiny::_Collection->new(@_) }
# Array
is c(1, 2, 3)->[1], 2, 'right result';
'right result';
# TO_JSON
-is encode_json(c(1, 2, 3)), '[1,2,3]', 'right result';
+is +JSON::PP->new->convert_blessed->encode(c(1, 2, 3)), '[1,2,3]', 'right result';
done_testing();