my $response = sendRequest($params); if ($response->content ne 'null') { my $json = JSON::XS::decode_json($response->content);