3 BEGIN { plan tests => 2 };
5 BEGIN { $ENV{PERL_JSON_BACKEND} = 1; }
12 skip "can't use JSON::XS.", 2, unless( JSON->backend->is_xs );
16 tie my %h, 'Tie::StdHash';
19 ok ($js->encode (\%h) eq '{"a":1}');
21 tie my @a, 'Tie::StdArray';
24 ok ($js->encode (\@a) eq '[1,2]');