These are the package declarations:
for the first:- package JSON;
for the other:- package Test::JSON;
Now, I checked using
to find out which JSON.pm it was using. It turns out tht it uses,
/usr/dir/packages/perl/perl-5.8.8/lib/site_perl/5.8.8/JSON.pm
and after I try to use only a specific method, it gives me this error:
Can't locate object method "is_valid_json" via package "Test::JSON" (perhaps you forgot to load "Test::JSON"?)