2 use warnings FATAL => 'all';
3 use if !do { require JSON::XS; 1; }, 'Test::More', skip_all => 'No JSON::XS';
7 is( JSON, 'JSON::XS', 'Correct JSON class' );
9 is( \&encode_json, \&JSON::XS::encode_json, 'Correct encode_json function' );
10 is( \&decode_json, \&JSON::XS::decode_json, 'Correct encode_json function' );