I don't see the error here. It's normal for a Makefile.PL to call CPAN to download missing dependencies or features. If you don't want CPAN to download the dependencies, then just have a look at the Makefile.PL, find out what the dependencies are, and then manually download and install each dependency before you try to install
JSON::Any.