2 use warnings FATAL => 'all';
3 use Test::Without::Module 'Cpanel::JSON::XS', 'JSON::XS';
4 use if !do { require JSON::PP; 1; }, 'Test::More', skip_all => 'No JSON::PP';
8 is(JSON, 'JSON::PP', 'Correct JSON class');
11 \&encode_json, \&JSON::PP::encode_json,
12 'Correct encode_json function'
16 \&decode_json, \&JSON::PP::decode_json,
17 'Correct encode_json function'