JSONのパースがうまくできません
そもそも $json がJSON文字列じゃない気がします
どうすればよいでしょうか

use utf8;
use Encode;
use CGI;
use LWP::UserAgent;
use JSON;

$cgi = new CGI;
$url = '//example.com/foobar';
$ua = LWP::UserAgent->new;
$req = HTTP::Request->new('GET', $url);
$json = $ua->request($req);

$jsonParse = JSON->new->utf8(0)->decode( decode_utf8($json) );