Erro ao pegar retorno do Json

consegui solucionar o problema criando uma função javascript no html do formulário. Obrigado @Gabriel pela grande ajuda. Segue o código


var url = "http://[endereco]:[porta]/api/public/2.0/documents/getDownloadURL/2861";
		
	$.getJSON(url, function(dadosRetorno){
	   try{
		if (dadosRetorno.erro != true){
		    console.log("retorno do json: " + dadosRetorno.content);				
		}else{					
		    console.log("caiu no else");
		}
			
		}catch(ex){}
	});


1 curtida